From: Junio C Hamano Date: Tue, 2 May 2006 05:15:54 +0000 (-0700) Subject: fsck-objects: mark objects reachable from cache-tree X-Git-Tag: v1.4.0-rc1~45^2~7 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=cdc08b33ef3da0e963f9956e4a66f67cc3330f83;p=git.git fsck-objects: mark objects reachable from cache-tree When fsck-objects scanned cache-tree, it forgot to mark the trees it found reachable and in use. Signed-off-by: Junio C Hamano --- diff --git a/fsck-objects.c b/fsck-objects.c index cc09143a9..98421aab3 100644 --- a/fsck-objects.c +++ b/fsck-objects.c @@ -446,6 +446,8 @@ static int fsck_cache_tree(struct cache_tree *it) if (0 <= it->entry_count) { struct object *obj = parse_object(it->sha1); + mark_reachable(obj, REACHABLE); + obj->used = 1; if (obj->type != tree_type) err |= objerror(obj, "non-tree in cache-tree"); }