]> git.ipfire.org Git - thirdparty/git.git/blobdiff - tag.c
object: add repository argument to lookup_object
[thirdparty/git.git] / tag.c
diff --git a/tag.c b/tag.c
index 7d282df06972c57cc028ea7f6a8ef9c0e77df149..1b95eb9f07fe3c2932611d297558e3b020db4f1e 100644 (file)
--- a/tag.c
+++ b/tag.c
@@ -94,7 +94,7 @@ struct object *deref_tag_noverify(struct object *o)
 
 struct tag *lookup_tag(const struct object_id *oid)
 {
-       struct object *obj = lookup_object(oid->hash);
+       struct object *obj = lookup_object(the_repository, oid->hash);
        if (!obj)
                return create_object(the_repository, oid->hash,
                                     alloc_tag_node(the_repository));