From: Johannes Schindelin Date: Wed, 13 Jan 2016 17:20:16 +0000 (+0100) Subject: am: release pack files before garbage-collecting X-Git-Tag: v2.7.1~18^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=df617b529e9ebf01cde572b8f78f4dd8bc6c010b;p=thirdparty%2Fgit.git 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 Reviewed-by: Jeff King Signed-off-by: Junio C Hamano --- 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); } }