summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-05-03 06:03:15 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-05-03 06:03:15 (GMT)
commit80fe7d2b54b1aebde6c067694cdbf3ba40ad0c39 (patch)
treee2e722191376109cfa2912116ac73354d7d9d7a2
parent468eb79ed453017151c1230057986a7a79264395 (diff)
downloadgit-80fe7d2b54b1aebde6c067694cdbf3ba40ad0c39.zip
git-80fe7d2b54b1aebde6c067694cdbf3ba40ad0c39.tar.gz
git-80fe7d2b54b1aebde6c067694cdbf3ba40ad0c39.tar.bz2
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>
-rw-r--r--builtin-count.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/builtin-count.c b/builtin-count.c
index 0256369..5ee72df 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;