summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <junkio@cox.net>2006-05-02 23:03:52 -0700
committerLibravatar Junio C Hamano <junkio@cox.net>2006-05-02 23:03:52 -0700
commit86c2f32b19b3f3e293e4ccf6c9bedb4e73eed839 (patch)
treeafcf932d40af2bd8121d92c325339b720c85ec16
parentMerge branch 'jc/symref' into next (diff)
parentbuiltin-count-objects: open packs when running -v (diff)
downloadtgif-86c2f32b19b3f3e293e4ccf6c9bedb4e73eed839.tar.xz
Merge branch 'jc/count' into next
* jc/count: builtin-count-objects: open packs when running -v
-rw-r--r--builtin-count.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/builtin-count.c b/builtin-count.c
index 0256369d5b..5ee72df247 100644
--- a/builtin-count.c
+++ b/builtin-count.c
@@ -105,6 +105,8 @@ int cmd_count_objects(int ac, const char **av, char **ep)
}
if (verbose) {
struct packed_git *p;
+ if (!packed_git)
+ prepare_packed_git();
for (p = packed_git; p; p = p->next) {
if (!p->pack_local)
continue;