gc --auto: exclude base pack if not enough mem to "repack -ad"
[gitweb.git] / builtin / clone.c
index 101c27a593f4c64a735410f18bfcb46489728696..7df5932b855e874d45b970f6150d65ed25b06f5f 100644 (file)
@@ -27,6 +27,7 @@
 #include "connected.h"
 #include "packfile.h"
 #include "list-objects-filter-options.h"
+#include "object-store.h"
 
 /*
  * Overall FIXMEs:
@@ -1217,7 +1218,7 @@ int cmd_clone(int argc, const char **argv, const char *prefix)
        transport_disconnect(transport);
 
        if (option_dissociate) {
-               close_all_packs();
+               close_all_packs(the_repository->objects);
                dissociate_from_references();
        }