Skip to content

Commit aa03413

Browse files
author
Linus Torvalds
committed
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.
1 parent 8500349 commit aa03413

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fsck-cache.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ static void check_connectivity(void)
3434
printf("broken link from %7s %s\n",
3535
obj->type, sha1_to_hex(obj->sha1));
3636
printf(" to %7s %s\n",
37-
obj->type, sha1_to_hex(refs->item->sha1));
37+
refs->item->type, sha1_to_hex(refs->item->sha1));
3838
}
3939

4040
/* Don't bother with tag reachability. */

0 commit comments

Comments
 (0)