Skip to content
Snippets Groups Projects
Commit d2923906 authored by Michael J Gruber's avatar Michael J Gruber Committed by Anton Wuerfel
Browse files

t5510: do not leave changed cwd


t5510 carefully keeps the cwd at the test root by using either subshells
or explicit cd'ing back to the root. Use a subshell for the last
subtest, too.

Signed-off-by: default avatarMichael J Gruber <git@drmicha.warpmail.net>
Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
parent dda08052
No related branches found
No related tags found
No related merge requests found
...@@ -679,10 +679,12 @@ test_expect_success 'fetching with auto-gc does not lock up' ' ...@@ -679,10 +679,12 @@ test_expect_success 'fetching with auto-gc does not lock up' '
EOF EOF
git clone "file://$D" auto-gc && git clone "file://$D" auto-gc &&
test_commit test2 && test_commit test2 &&
(
cd auto-gc && cd auto-gc &&
git config gc.autoPackLimit 1 && git config gc.autoPackLimit 1 &&
GIT_ASK_YESNO="$D/askyesno" git fetch >fetch.out 2>&1 && GIT_ASK_YESNO="$D/askyesno" git fetch >fetch.out 2>&1 &&
! grep "Should I try again" fetch.out ! grep "Should I try again" fetch.out
)
' '
test_done test_done
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment