diff --git a/builtin/repack.c b/builtin/repack.c index 67f8978043..51c9a97588 100644 --- a/builtin/repack.c +++ b/builtin/repack.c @@ -421,6 +421,8 @@ int cmd_repack(int argc, const char **argv, const char *prefix) close_all_packs(the_repository->objects); + 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