]> git.ipfire.org Git - thirdparty/git.git/blobdiff - builtin/fetch.c
object-store: close all packs upon clearing the object store
[thirdparty/git.git] / builtin / fetch.c
index 8ee998ea2ee8f736a49afe285d31b0be478cf15b..a39e9d7b1579fd6adb8d421ac8984bc0592b5eda 100644 (file)
@@ -1478,7 +1478,7 @@ int cmd_fetch(int argc, const char **argv, const char *prefix)
 
        string_list_clear(&list, 0);
 
-       close_all_packs();
+       close_all_packs(the_repository->objects);
 
        argv_array_pushl(&argv_gc_auto, "gc", "--auto", NULL);
        if (verbosity < 0)