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>
This commit is contained in:
@ -105,6 +105,8 @@ int cmd_count_objects(int ac, const char **av, char **ep)
|
|||||||
}
|
}
|
||||||
if (verbose) {
|
if (verbose) {
|
||||||
struct packed_git *p;
|
struct packed_git *p;
|
||||||
|
if (!packed_git)
|
||||||
|
prepare_packed_git();
|
||||||
for (p = packed_git; p; p = p->next) {
|
for (p = packed_git; p; p = p->next) {
|
||||||
if (!p->pack_local)
|
if (!p->pack_local)
|
||||||
continue;
|
continue;
|
||||||
|
Reference in New Issue
Block a user