object: add repository argument to object_as_type
[gitweb.git] / tag.c
diff --git a/tag.c b/tag.c
index 7d282df06972c57cc028ea7f6a8ef9c0e77df149..a14a4f230374193255611960b2a00936caa4eab0 100644 (file)
--- a/tag.c
+++ b/tag.c
@@ -94,11 +94,11 @@ 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));
-       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)