Skip to content

Commit b9d622e

Browse files
dschogitster
authored andcommitted
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>
1 parent 9a695fb commit b9d622e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

t/t5701-clone-local.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,8 @@ test_expect_success 'clone empty repository, and then push should not segfault.'
138138
mkdir empty &&
139139
(cd empty && git init) &&
140140
git clone empty empty-clone &&
141-
cd empty-clone &&
142-
test_must_fail git push
141+
(cd empty-clone &&
142+
test_must_fail git push)
143143
'
144144

145145
test_done

0 commit comments

Comments
 (0)