convert.c: refactor crlf_action
[gitweb.git] / builtin / am.c
index 7b8351dede1a70e0d6eefdfd9ce30d37c86ca640..b55f903f058047bc59773dd691892c621351f9ba 100644 (file)
@@ -1924,6 +1924,7 @@ static void am_run(struct am_state *state, int resume)
         */
        if (!state->rebasing) {
                am_destroy(state);
+               close_all_packs();
                run_command_v_opt(argv_gc_auto, RUN_GIT_CMD);
        }
 }