Skip to content

Commit

Permalink
Don't ignore reachability of tag objects in fsck
Browse files Browse the repository at this point in the history
We used to ignore unreachable tags, which just causes problems: it makes
"git prune" leave them around, but since we'll have prune everything
that tag points to, the tag object really should be removed too.

So remove the code that made us think tags were always reachable.
  • Loading branch information
Linus Torvalds committed Jun 23, 2005
1 parent 3f571e0 commit e4bcaac
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions fsck-cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,6 @@ static void check_connectivity(void)
refs->item->type, sha1_to_hex(refs->item->sha1));
}

/* Don't bother with tag reachability. */
if (obj->type == tag_type)
continue;

if (show_unreachable && !(obj->flags & REACHABLE)) {
if (obj->attached_deltas)
printf("foreign delta reference %s\n",
Expand Down

0 comments on commit e4bcaac

Please sign in to comment.