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 <[email protected]> Reviewed-by: Jeff King <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 0898c96 commit df617b5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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)