diff options
author | Kim Gybels <kgybels@infogroep.be> | 2018-07-09 22:37:27 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-07-09 14:16:10 -0700 |
commit | 12e73a3ce46135279cec8fc9ef0068948936e6f8 (patch) | |
tree | 0789c3cfa823c147f3f380486c3a570f3a002ce9 /t | |
parent | 53f9a3e157dbbc901a02ac2c73346d375e24978c (diff) | |
download | git-12e73a3ce46135279cec8fc9ef0068948936e6f8.tar.gz |
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')
-rwxr-xr-x | t/t5510-fetch.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/t/t5510-fetch.sh b/t/t5510-fetch.sh index e402aee6a2..6f1450eb69 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 ) ' |