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>
This commit is contained in:
Johannes Schindelin 2009-04-28 00:12:31 +02:00 committed by Junio C Hamano
parent 9a695fbf38
commit b9d622e711

View File

@ -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