diff options
author | Junio C Hamano <gitster@pobox.com> | 2018-08-03 01:30:43 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-08-03 01:30:43 +0300 |
commit | 562413eb2938b7a1aa85a2ae157ef162d51e55dc (patch) | |
tree | bac6e4f6c15c283289151461c1df420ec7aefdd7 /t/t5510-fetch.sh | |
parent | ae533c4a92aef6ab180441dbb76ef83521fc87d6 (diff) | |
parent | 12e73a3ce46135279cec8fc9ef0068948936e6f8 (diff) |
Merge branch 'kg/gc-auto-windows-workaround'
"git gc --auto" opens file descriptors for the packfiles before
spawning "git repack/prune", which would upset Windows that does
not want a process to work on a file that is open by another
process. The issue has been worked around.
* kg/gc-auto-windows-workaround:
gc --auto: release pack files before auto packing
Diffstat (limited to 't/t5510-fetch.sh')
-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 4e6d049b94..62308be499 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 ) ' |