summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e27a56a)
raw | patch | inline | side by side (parent: e27a56a)
author | Linus Torvalds <torvalds@g5.osdl.org> | |
Fri, 8 Jul 2005 00:05:41 +0000 (17:05 -0700) | ||
committer | Linus Torvalds <torvalds@g5.osdl.org> | |
Fri, 8 Jul 2005 00:05:41 +0000 (17:05 -0700) |
We used to not count them at all, which then made us complain that there
were no refs.
were no refs.
fsck-cache.c | patch | blob | history |
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) {
- if (!standalone && has_sha1_file(sha1))
+ if (!standalone && has_sha1_file(sha1)) {
+ default_refs++;
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;