diff options
author | Johannes Schindelin <johannes.schindelin@gmx.de> | 2016-01-13 18:20:16 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-01-13 11:36:28 -0800 |
commit | df617b529e9ebf01cde572b8f78f4dd8bc6c010b (patch) | |
tree | ad8f9fe04ee3e3734cf1ddb7fd0b67452b073b8d | |
parent | 0898c96281044a1130f1a777660aaf17e782c4f6 (diff) | |
download | git-df617b529e9ebf01cde572b8f78f4dd8bc6c010b.tar.gz git-df617b529e9ebf01cde572b8f78f4dd8bc6c010b.tar.xz |
am: release pack files before garbage-collecting
Before auto-gc'ing, we need to make sure that the pack files are
released in case they need to be repacked and garbage-collected.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Reviewed-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r-- | builtin/am.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin/am.c b/builtin/am.c index 9fb42fdd7..de235cf11 100644 --- a/builtin/am.c +++ b/builtin/am.c @@ -1939,6 +1939,7 @@ next: */ if (!state->rebasing) { am_destroy(state); + close_all_packs(); run_command_v_opt(argv_gc_auto, RUN_GIT_CMD); } } |