summaryrefslogtreecommitdiffstats
path: root/builtin/clone.c
diff options
context:
space:
mode:
authorStefan Beller <sbeller@google.com>2018-03-23 18:21:00 +0100
committerJunio C Hamano <gitster@pobox.com>2018-03-26 19:05:55 +0200
commitd0b59866223f7ef0dcd07bff857f651cd921bc02 (patch)
tree0d073e2c27c760a98cd978c5e34dfb6a4504b579 /builtin/clone.c
parentobject-store: move packed_git and packed_git_mru to object store (diff)
downloadgit-d0b59866223f7ef0dcd07bff857f651cd921bc02.tar.xz
git-d0b59866223f7ef0dcd07bff857f651cd921bc02.zip
object-store: close all packs upon clearing the object store
Signed-off-by: Stefan Beller <sbeller@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com> Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/clone.c')
-rw-r--r--builtin/clone.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/clone.c b/builtin/clone.c
index 855947f1ab..7df5932b85 100644
--- a/builtin/clone.c
+++ b/builtin/clone.c
@@ -1218,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();
}