aboutsummaryrefslogtreecommitdiff
path: root/fsck-cache.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-22 19:06:34 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-22 19:06:34 -0700
commite4bcaac17e8959eb970a348519a25d0d396395f0 (patch)
tree1de09518f0979082d9484084d3b61096bfd1e58b /fsck-cache.c
parent3f571e0b3a7893ed068acd75f27e152d29945637 (diff)
downloadgit-e4bcaac17e8959eb970a348519a25d0d396395f0.tar.gz
git-e4bcaac17e8959eb970a348519a25d0d396395f0.tar.xz
Don't ignore reachability of tag objects in fsck
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.
Diffstat (limited to 'fsck-cache.c')
-rw-r--r--fsck-cache.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/fsck-cache.c b/fsck-cache.c
index d69c426b3..7c55fe56a 100644
--- a/fsck-cache.c
+++ b/fsck-cache.c
@@ -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",