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 <junkio@cox.net>
Junio C Hamano committed
May 2, 2006 at 23:03 UTC
80fe7d2b54b1aebde6c067694cdbf3ba40ad0c39
1 file changed
+2
builtin-count.c
+2
@@ -105,6 +105,8 @@ int cmd_count_objects(int ac, const char **av, char **ep)
105
}
106
if (verbose) {
107
struct packed_git *p;
108
+ if (!packed_git)
109
+ prepare_packed_git();
110
for (p = packed_git; p; p = p->next) {
111
if (!p->pack_local)
112
continue;