summaryrefslogtreecommitdiff
path: root/builtin/am.c
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2016-01-13 17:20:16 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-01-13 19:36:28 (GMT)
commitdf617b529e9ebf01cde572b8f78f4dd8bc6c010b (patch)
treead8f9fe04ee3e3734cf1ddb7fd0b67452b073b8d /builtin/am.c
parent0898c96281044a1130f1a777660aaf17e782c4f6 (diff)
downloadgit-df617b529e9ebf01cde572b8f78f4dd8bc6c010b.zip
git-df617b529e9ebf01cde572b8f78f4dd8bc6c010b.tar.gz
git-df617b529e9ebf01cde572b8f78f4dd8bc6c010b.tar.bz2
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>
Diffstat (limited to 'builtin/am.c')
-rw-r--r--builtin/am.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin/am.c b/builtin/am.c
index 9fb42fd..de235cf 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);
}
}