summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-10 23:22:59 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-10 23:22:59 -0700
commitf1257f3a33c49ea4f3fd43c7aed97d8a270190dd (patch)
tree18e4bb98e1e685dfdd798048ada57c925ee87aee
parent8ba0bbb237af3de317f8d009302500e9a7e2b3c3 (diff)
downloadgit-f1257f3a33c49ea4f3fd43c7aed97d8a270190dd.tar.gz
Oops, the actual 'printf' for missing objects was missing.
Which made fsck very quiet about objects it hadn't found. So add it. We'll need to make things like these optional, because it's perfectly ok to have partial history if you don't want it, and don't want to go backwards. But for development, it's best to always complain about missing sha1 object files that are referenced from somewhere else.
-rw-r--r--fsck-cache.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fsck-cache.c b/fsck-cache.c
index 5dca6dbc04..87366f0e53 100644
--- a/fsck-cache.c
+++ b/fsck-cache.c
@@ -69,6 +69,7 @@ static void check_connectivity(void)
if (lookup_seen(n->needs, n->tag))
continue;
strcpy(hex, sha1_to_hex(n->parent));
+ printf("missing %s: %s referenced by %s\n", n->tag, sha1_to_hex(n->needs), hex);
}
/* Tell the user about things not referenced.. */