Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
grep.c: remove implicit dependency on the_index
[gitweb.git]
/
builtin
/
gc.c
diff --git
a/builtin/gc.c
b/builtin/gc.c
index e103f0f85d7995999fbd7e52057e563005ae819e..57069442b0dc1297366e29b1fbf0e6ee70377146 100644
(file)
--- 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]);