sha1_file: add repository argument to link_alt_odb_entry
[gitweb.git] / builtin / am.c
index 5bdd2d75781076636f93800520e9ed161295724f..47beddbe24040d81dea28a61d9e7f7bd0e791653 100644 (file)
@@ -1859,7 +1859,7 @@ static void am_run(struct am_state *state, int resume)
         */
        if (!state->rebasing) {
                am_destroy(state);
-               close_all_packs();
+               close_all_packs(the_repository->objects);
                run_command_v_opt(argv_gc_auto, RUN_GIT_CMD);
        }
 }