From: Johannes Schindelin Date: Mon, 27 Apr 2009 22:12:31 +0000 (+0200) Subject: t5701: do not get stuck in empty-push/ X-Git-Tag: v1.6.3-rc4~17 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b9d622e711f0bf0280996bd79ec8509475ae80e5;p=git.git t5701: do not get stuck in empty-push/ A test might happen to be the last one in the script, but other people later may want to add more tests after your test is done. Do not surprise them by going in a subdirectory to run a part of your test and never coming out of it. This fixes a162e78 in that respect. Signed-off-by: Johannes Schindelin Signed-off-by: Junio C Hamano --- diff --git a/t/t5701-clone-local.sh b/t/t5701-clone-local.sh index f26b511c3..19b5c0d55 100755 --- a/t/t5701-clone-local.sh +++ b/t/t5701-clone-local.sh @@ -138,8 +138,8 @@ test_expect_success 'clone empty repository, and then push should not segfault.' mkdir empty && (cd empty && git init) && git clone empty empty-clone && - cd empty-clone && - test_must_fail git push + (cd empty-clone && + test_must_fail git push) ' test_done