aboutsummaryrefslogtreecommitdiffstats
path: root/fsck-cache.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-05-02 21:10:54 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-05-02 21:10:54 -0700
commitaa03413467a2f2ada900817dc2a8e3904549b5fe (patch)
treec73e1ffb5c1666dc2ee601c906d54db99b8bd20e /fsck-cache.c
parent8500349208e6bfd0e8bc67d294bfea93da2328a2 (diff)
downloadgit-aa03413467a2f2ada900817dc2a8e3904549b5fe.tar.gz
fsck-cache: report broken links correctly
We reported the type of te missing object incorrectly: we reported it as the type of the referrer object, not the object that was referred to.
Diffstat (limited to 'fsck-cache.c')
-rw-r--r--fsck-cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fsck-cache.c b/fsck-cache.c
index 7dda9c3eb7..637aededbd 100644
--- a/fsck-cache.c
+++ b/fsck-cache.c
@@ -34,7 +34,7 @@ static void check_connectivity(void)
printf("broken link from %7s %s\n",
obj->type, sha1_to_hex(obj->sha1));
printf(" to %7s %s\n",
- obj->type, sha1_to_hex(refs->item->sha1));
+ refs->item->type, sha1_to_hex(refs->item->sha1));
}
/* Don't bother with tag reachability. */