summaryrefslogtreecommitdiff
path: root/t/t5510-fetch.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2016-03-10 18:56:42 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-03-10 18:56:42 (GMT)
commit68846a92eafa6b2bfae778d0a656443a9fa61e59 (patch)
tree92761f0da1fc199f9cf03e43aee18abbd5c0e10d /t/t5510-fetch.sh
parent9ed1d905890640bdee698f9c7a92a11d4840c058 (diff)
parent816c19308b39d0f9f6d15e8320aa1d2ab148e3d2 (diff)
downloadgit-68846a92eafa6b2bfae778d0a656443a9fa61e59.zip
git-68846a92eafa6b2bfae778d0a656443a9fa61e59.tar.gz
git-68846a92eafa6b2bfae778d0a656443a9fa61e59.tar.bz2
Merge branch 'js/close-packs-before-gc'
A small future-proofing of a test added recently. * js/close-packs-before-gc: t5510: do not leave changed cwd
Diffstat (limited to 't/t5510-fetch.sh')
-rwxr-xr-xt/t5510-fetch.sh10
1 files changed, 6 insertions, 4 deletions
diff --git a/t/t5510-fetch.sh b/t/t5510-fetch.sh
index 0c10c85..38321d1 100755
--- a/t/t5510-fetch.sh
+++ b/t/t5510-fetch.sh
@@ -679,10 +679,12 @@ test_expect_success 'fetching with auto-gc does not lock up' '
EOF
git clone "file://$D" auto-gc &&
test_commit test2 &&
- cd auto-gc &&
- git config gc.autoPackLimit 1 &&
- GIT_ASK_YESNO="$D/askyesno" git fetch >fetch.out 2>&1 &&
- ! grep "Should I try again" fetch.out
+ (
+ cd auto-gc &&
+ git config gc.autoPackLimit 1 &&
+ GIT_ASK_YESNO="$D/askyesno" git fetch >fetch.out 2>&1 &&
+ ! grep "Should I try again" fetch.out
+ )
'
test_done