Skip to content

Commit

Permalink
t5701: do not get stuck in empty-push/
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Johannes Schindelin authored and Junio C Hamano committed Apr 27, 2009
1 parent 9a695fb commit b9d622e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions t/t5701-clone-local.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit b9d622e

Please sign in to comment.