From: Linus Torvalds Date: Tue, 3 May 2005 04:10:54 +0000 (-0700) Subject: fsck-cache: report broken links correctly X-Git-Tag: v0.99~656 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=aa03413467a2f2ada900817dc2a8e3904549b5fe;p=git.git 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. --- diff --git a/fsck-cache.c b/fsck-cache.c index 7dda9c3e..637aeded 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. */