tag: add repository argument to lookup_tag
[git/git.git] / object.c
index f08a887..bcfcfd3 100644 (file)
--- a/object.c
+++ b/object.c
@@ -223,7 +223,7 @@ struct object *parse_object_buffer_the_repository(const struct object_id *oid, e
                        obj = &commit->object;
                }
        } else if (type == OBJ_TAG) {
-               struct tag *tag = lookup_tag(oid);
+               struct tag *tag = lookup_tag(the_repository, oid);
                if (tag) {
                        if (parse_tag_buffer(tag, buffer, size))
                               return NULL;