tag: add repository argument to lookup_tag
[gitweb.git] / builtin / pack-objects.c
index 69d3d7b82af8b69b589327f9420bb02bab339a25..6565c800ac3865f9325c21bf28707cce0506195e 100644 (file)
@@ -2474,7 +2474,7 @@ static void add_tag_chain(const struct object_id *oid)
        if (packlist_find(&to_pack, oid->hash, NULL))
                return;
 
-       tag = lookup_tag(oid);
+       tag = lookup_tag(the_repository, oid);
        while (1) {
                if (!tag || parse_tag(tag) || !tag->tagged)
                        die("unable to pack objects reachable from tag %s",