tree: add repository argument to lookup_tree
[git/git.git] / builtin / reflog.c
index 948002b..5e12c85 100644 (file)
@@ -66,7 +66,7 @@ static int tree_is_complete(const struct object_id *oid)
        int complete;
        struct tree *tree;
 
-       tree = lookup_tree(oid);
+       tree = lookup_tree(the_repository, oid);
        if (!tree)
                return 0;
        if (tree->object.flags & SEEN)