commit: convert commit_tree* to object_id
[gitweb.git] / builtin / replace.c
index 10078ae37136f154486d8163b6b905ad163c7047..814bf6bfdead377b9294611c2fea74a5f35636b7 100644 (file)
@@ -355,7 +355,7 @@ static void check_one_mergetag(struct commit *commit,
        struct tag *tag;
        int i;
 
-       hash_sha1_file(extra->value, extra->len, typename(OBJ_TAG), tag_oid.hash);
+       hash_object_file(extra->value, extra->len, typename(OBJ_TAG), &tag_oid);
        tag = lookup_tag(&tag_oid);
        if (!tag)
                die(_("bad mergetag in commit '%s'"), ref);