From: Junio C Hamano Date: Wed, 3 May 2006 06:03:15 +0000 (-0700) Subject: builtin-count-objects: open packs when running -v X-Git-Tag: v1.4.0-rc1~186^2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=80fe7d2b54b1aebde6c067694cdbf3ba40ad0c39;p=git.git builtin-count-objects: open packs when running -v Otherwise we would report absolutely no objects in a fully packed repository. Signed-off-by: Junio C Hamano --- diff --git a/builtin-count.c b/builtin-count.c index 0256369d5..5ee72df24 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;