mirror of
https://github.com/git/git.git
synced 2024-10-28 12:59:41 +01:00
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:
parent
468eb79ed4
commit
80fe7d2b54
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue