When fsck-objects scanned cache-tree, it forgot to mark the
trees it found reachable and in use.
Signed-off-by: Junio C Hamano <junkio@cox.net>
if (0 <= it->entry_count) {
struct object *obj = parse_object(it->sha1);
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");
}
if (obj->type != tree_type)
err |= objerror(obj, "non-tree in cache-tree");
}