diff options
author | Stefan Beller <sbeller@google.com> | 2018-03-23 18:21:00 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-03-26 10:05:55 -0700 |
commit | d0b59866223f7ef0dcd07bff857f651cd921bc02 (patch) | |
tree | 0d073e2c27c760a98cd978c5e34dfb6a4504b579 /object.c | |
parent | a80d72db2a73174b3f22142eb2014b33696fd795 (diff) | |
download | git-d0b59866223f7ef0dcd07bff857f651cd921bc02.tar.gz |
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 'object.c')
-rw-r--r-- | object.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -5,6 +5,7 @@ #include "commit.h" #include "tag.h" #include "object-store.h" +#include "packfile.h" static struct object **obj_hash; static int nr_objs, obj_hash_size; @@ -483,8 +484,6 @@ void raw_object_store_clear(struct raw_object_store *o) o->alt_odb_tail = NULL; INIT_LIST_HEAD(&o->packed_git_mru); - /* - * TODO: call close_all_packs once migrated to - * take an object store argument - */ + close_all_packs(o); + o->packed_git = NULL; } |