Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
hooks-pre-commit: use \t, rather than a literal TAB in regexp
[gitweb.git]
/
builtin-count-objects.c
diff --git
a/builtin-count-objects.c
b/builtin-count-objects.c
index ff90ebd465002882781507ecfcfc33cab2f759fc..4274ec19500953bd7b6775e6d66271e9e116fa86 100644
(file)
--- a/
builtin-count-objects.c
+++ b/
builtin-count-objects.c
@@
-111,6
+111,8
@@
int cmd_count_objects(int ac, const char **av, const char *prefix)
for (p = packed_git; p; p = p->next) {
if (!p->pack_local)
continue;
+ if (open_pack_index(p))
+ continue;
packed += p->num_objects;
num_pack++;
}