Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
gc --auto: release pack files before auto packing
[gitweb.git]
/
builtin
/
gc.c
diff --git
a/builtin/gc.c
b/builtin/gc.c
index ccfb1ceaeb3eb9c6a8cbe9297bceac94fa54bcac..63b62ab57c297d1873a529b9c55768eebca999b1 100644
(file)
--- a/
builtin/gc.c
+++ b/
builtin/gc.c
@@
-612,6
+612,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]);