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 /builtin/receive-pack.c | |
parent | eefc461ce3f2f0405639ff0919b844a894d6a02c (diff) | |
parent | d5621020c1e0edfa998cb5c5e80cdf47f36ffb1a (diff) | |
download | git-3c809405cb35679dd5205bf0ea118b7ee9256abb.tar.gz git-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 'builtin/receive-pack.c')
-rw-r--r-- | builtin/receive-pack.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin/receive-pack.c b/builtin/receive-pack.c index 2b3b746fb..f2d6761af 100644 --- a/builtin/receive-pack.c +++ b/builtin/receive-pack.c @@ -1796,6 +1796,7 @@ int cmd_receive_pack(int argc, const char **argv, const char *prefix) "gc", "--auto", "--quiet", NULL, }; int opt = RUN_GIT_CMD | RUN_COMMAND_STDOUT_TO_STDERR; + close_all_packs(); run_command_v_opt(argv_gc_auto, opt); } if (auto_update_server_info) |