commit-graph: not compatible with grafts
[gitweb.git] / builtin / pack-objects.c
index 14235b0ac22145b40f0d96282eb89e2767691d8f..33f23f99ceba8f52271f50759142579f656bcdf4 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",