Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2018-08-03 01:30:43 +0300
committerJunio C Hamano <gitster@pobox.com>2018-08-03 01:30:43 +0300
commit562413eb2938b7a1aa85a2ae157ef162d51e55dc (patch)
treebac6e4f6c15c283289151461c1df420ec7aefdd7 /builtin/gc.c
parentae533c4a92aef6ab180441dbb76ef83521fc87d6 (diff)
parent12e73a3ce46135279cec8fc9ef0068948936e6f8 (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 'builtin/gc.c')
-rw-r--r--builtin/gc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin/gc.c b/builtin/gc.c
index e103f0f85d7..57069442b0d 100644
--- a/builtin/gc.c
+++ b/builtin/gc.c
@@ -615,6 +615,7 @@ int cmd_gc(int argc, const char **argv, const char *prefix)
return -1;
if (!repository_format_precious_objects) {
+ close_all_packs(the_repository->objects);
if (run_command_v_opt(repack.argv, RUN_GIT_CMD))
return error(FAILED_RUN, repack.argv[0]);