Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2009-04-28 02:12:31 +0400
committerJunio C Hamano <gitster@pobox.com>2009-04-28 03:33:53 +0400
commitb9d622e711f0bf0280996bd79ec8509475ae80e5 (patch)
tree52570f918a5b0ddf9902f08f79e2e3b64ab1b2db /t/t5701-clone-local.sh
parent9a695fbf388263794ccbd16a342f4e2f8c5d400d (diff)
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 <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5701-clone-local.sh')
-rwxr-xr-xt/t5701-clone-local.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/t5701-clone-local.sh b/t/t5701-clone-local.sh
index f26b511c3e..19b5c0d552 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