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.
This commit is contained in:
Linus Torvalds 2005-05-02 21:10:54 -07:00
Родитель 8500349208
Коммит aa03413467
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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. */