Merge branch 'tk/interpret-trailers-in-place'
[gitweb.git] / builtin / am.c
index 9fb42fdd714a7785f6d75486db0d48fecceaacd6..de235cf11a9df925f482d02ec0df7c6e748ff35d 100644 (file)
@@ -1939,6 +1939,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);
        }
 }