Skip to content

Commit

Permalink
builtin-count-objects: open packs when running -v
Browse files Browse the repository at this point in the history
Otherwise we would report absolutely no objects in a fully
packed repository.

Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Junio C Hamano committed May 3, 2006
1 parent 468eb79 commit 80fe7d2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions builtin-count.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 80fe7d2

Please sign in to comment.