grep.c: remove implicit dependency on the_index
[gitweb.git] / reachable.c
index cc25f012e5df10fd04f2e4739a10297bc546a9d3..6e9b810d2a5e03dc613fe1e58938086f1ed9b684 100644 (file)
@@ -88,7 +88,7 @@ static void add_recent_object(const struct object_id *oid,
                obj = parse_object_or_die(oid, NULL);
                break;
        case OBJ_TREE:
-               obj = (struct object *)lookup_tree(oid);
+               obj = (struct object *)lookup_tree(the_repository, oid);
                break;
        case OBJ_BLOB:
                obj = (struct object *)lookup_blob(the_repository, oid);