gc/repack: release packs when needed
[gitweb.git] / builtin / repack.c
index 3c30e16ec5483c2a88cbe96f67475746487b31a9..2317608c6b850e3bcf13b153bce583b00af3a28c 100644 (file)
@@ -408,6 +408,8 @@ int cmd_repack(int argc, const char **argv, const char *prefix)
        if (!names.nr && !po_args.quiet)
                printf("Nothing new to pack.\n");
 
+       close_all_packs(the_repository->objects);
+
        /*
         * Ok we have prepared all new packfiles.
         * First see if there are packs of the same name and if so