object: add repository argument to object_as_type
[gitweb.git] / tag.c
diff --git a/tag.c b/tag.c
index 1b95eb9f07fe3c2932611d297558e3b020db4f1e..a14a4f230374193255611960b2a00936caa4eab0 100644 (file)
--- a/tag.c
+++ b/tag.c
@@ -98,7 +98,7 @@ struct tag *lookup_tag(const struct object_id *oid)
        if (!obj)
                return create_object(the_repository, oid->hash,
                                     alloc_tag_node(the_repository));
-       return object_as_type(obj, OBJ_TAG, 0);
+       return object_as_type(the_repository, obj, OBJ_TAG, 0);
 }
 
 static timestamp_t parse_tag_date(const char *buf, const char *tail)