object-store: move object access functions to object-store.h
[gitweb.git] / builtin / clone.c
index 855947f1aba9bd052d5e3edb42f4174ae45a0579..29998c02ecefd6221816db2efd70d09590c08844 100644 (file)
@@ -14,6 +14,7 @@
 #include "parse-options.h"
 #include "fetch-pack.h"
 #include "refs.h"
+#include "object-store.h"
 #include "tree.h"
 #include "tree-walk.h"
 #include "unpack-trees.h"
@@ -1218,7 +1219,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();
        }