summaryrefslogtreecommitdiff
path: root/t/t5510-fetch.sh
diff options
context:
space:
mode:
authorKim Gybels <kgybels@infogroep.be>2018-07-09 20:37:27 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-07-09 21:16:10 (GMT)
commit12e73a3ce46135279cec8fc9ef0068948936e6f8 (patch)
tree0789c3cfa823c147f3f380486c3a570f3a002ce9 /t/t5510-fetch.sh
parent53f9a3e157dbbc901a02ac2c73346d375e24978c (diff)
downloadgit-12e73a3ce46135279cec8fc9ef0068948936e6f8.zip
git-12e73a3ce46135279cec8fc9ef0068948936e6f8.tar.gz
git-12e73a3ce46135279cec8fc9ef0068948936e6f8.tar.bz2
gc --auto: release pack files before auto packing
Teach gc --auto to release pack files before auto packing the repository to prevent failures when removing them. Also teach the test 'fetching with auto-gc does not lock up' to complain when it is no longer triggering an auto packing of the repository. Fixes https://github.com/git-for-windows/git/issues/500 Signed-off-by: Kim Gybels <kgybels@infogroep.be> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5510-fetch.sh')
-rwxr-xr-xt/t5510-fetch.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/t/t5510-fetch.sh b/t/t5510-fetch.sh
index e402aee..6f1450e 100755
--- a/t/t5510-fetch.sh
+++ b/t/t5510-fetch.sh
@@ -828,9 +828,11 @@ test_expect_success 'fetching with auto-gc does not lock up' '
test_commit test2 &&
(
cd auto-gc &&
+ git config fetch.unpackLimit 1 &&
git config gc.autoPackLimit 1 &&
git config gc.autoDetach false &&
GIT_ASK_YESNO="$D/askyesno" git fetch >fetch.out 2>&1 &&
+ test_i18ngrep "Auto packing the repository" fetch.out &&
! grep "Should I try again" fetch.out
)
'