sha1_file: add repository argument to read_info_alternates
[gitweb.git] / builtin / merge.c
index 30264cfd7c1720aee814699eb3ca057e292b082d..96d56cbdd2f2bbb9a76d2027037b54f32c892c23 100644 (file)
@@ -411,7 +411,7 @@ static void finish(struct commit *head_commit,
                         * We ignore errors in 'gc --auto', since the
                         * user should see them.
                         */
-                       close_all_packs();
+                       close_all_packs(the_repository->objects);
                        run_command_v_opt(argv_gc_auto, RUN_GIT_CMD);
                }
        }