tag: add repository argument to lookup_tag
[gitweb.git] / builtin / replace.c
index 0232f98f020c084f06df449775c698d1ffe3ef06..0351b7c62cf48c5c368b128fa555812bf3856549 100644 (file)
@@ -402,7 +402,7 @@ static int check_one_mergetag(struct commit *commit,
        int i;
 
        hash_object_file(extra->value, extra->len, type_name(OBJ_TAG), &tag_oid);
-       tag = lookup_tag(&tag_oid);
+       tag = lookup_tag(the_repository, &tag_oid);
        if (!tag)
                return error(_("bad mergetag in commit '%s'"), ref);
        if (parse_tag_buffer(tag, extra->value, extra->len))