Skip to content

Commit df617b5

Browse files
dschogitster
authored andcommitted
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>
1 parent 0898c96 commit df617b5

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

builtin/am.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1939,6 +1939,7 @@ static void am_run(struct am_state *state, int resume)
19391939
*/
19401940
if (!state->rebasing) {
19411941
am_destroy(state);
1942+
close_all_packs();
19421943
run_command_v_opt(argv_gc_auto, RUN_GIT_CMD);
19431944
}
19441945
}

0 commit comments

Comments
 (0)