object: add repository argument to create_object
[gitweb.git] / tag.c
diff --git a/tag.c b/tag.c
index 3d37c1bd251c5f8c5eb06ede72ab57b323888709..7150b759d66ec476e8fa8e403b42b0fba89028c2 100644 (file)
--- a/tag.c
+++ b/tag.c
@@ -93,7 +93,8 @@ struct tag *lookup_tag(const struct object_id *oid)
 {
        struct object *obj = lookup_object(oid->hash);
        if (!obj)
-               return create_object(oid->hash, alloc_tag_node());
+               return create_object(the_repository, oid->hash,
+                                    alloc_tag_node());
        return object_as_type(obj, OBJ_TAG, 0);
 }