summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2016-01-13 18:20:16 +0100
committerJunio C Hamano <gitster@pobox.com>2016-01-13 11:36:28 -0800
commitdf617b529e9ebf01cde572b8f78f4dd8bc6c010b (patch)
treead8f9fe04ee3e3734cf1ddb7fd0b67452b073b8d
parent0898c96281044a1130f1a777660aaf17e782c4f6 (diff)
downloadgit-df617b529e9ebf01cde572b8f78f4dd8bc6c010b.tar.gz
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.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin/am.c b/builtin/am.c
index 9fb42fdd71..de235cf11a 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);
}
}