diff options
author | Junio C Hamano <gitster@pobox.com> | 2016-01-26 15:40:29 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-01-26 15:40:29 -0800 |
commit | 3c809405cb35679dd5205bf0ea118b7ee9256abb (patch) | |
tree | a063a643dbcbf96f11018cdf2f379f00b764b238 /t | |
parent | Merge branch 'jk/ok-to-fail-gc-auto-in-rebase' (diff) | |
parent | receive-pack: release pack files before garbage-collecting (diff) | |
download | tgif-3c809405cb35679dd5205bf0ea118b7ee9256abb.tar.xz |
Merge branch 'js/close-packs-before-gc'
Many codepaths that run "gc --auto" before exiting kept packfiles
mapped and left the file descriptors to them open, which was not
friendly to systems that cannot remove files that are open. They
now close the packs before doing so.
* js/close-packs-before-gc:
receive-pack: release pack files before garbage-collecting
merge: release pack files before garbage-collecting
am: release pack files before garbage-collecting
fetch: release pack files before garbage-collecting
Diffstat (limited to 't')
-rwxr-xr-x | t/t5510-fetch.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/t/t5510-fetch.sh b/t/t5510-fetch.sh index 47e68a597c..9203a6507f 100755 --- a/t/t5510-fetch.sh +++ b/t/t5510-fetch.sh @@ -708,4 +708,17 @@ test_expect_success 'fetching a one-level ref works' ' ) ' +test_expect_success 'fetching with auto-gc does not lock up' ' + write_script askyesno <<-\EOF && + echo "$*" && + false + 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 +' + test_done |