diff --git a/fsck-cache.c b/fsck-cache.c
index e42264e6ce4e61855581deb2a22b7a8f6a111d70..48be6553a3b1d9b7e4b9a3382646bf753e15a4f3 100644 (file)
--- a/fsck-cache.c
+++ b/fsck-cache.c
obj = lookup_object(sha1);
if (!obj) {
obj = lookup_object(sha1);
if (!obj) {
- if (!standalone && has_sha1_file(sha1))
+ if (!standalone && has_sha1_file(sha1)) {
+ default_refs++;
return 0; /* it is in a pack */
return 0; /* it is in a pack */
+ }
error("%s: invalid sha1 pointer %s", refname, sha1_to_hex(sha1));
/* We'll continue with the rest despite the error.. */
return 0;
error("%s: invalid sha1 pointer %s", refname, sha1_to_hex(sha1));
/* We'll continue with the rest despite the error.. */
return 0;