tree-walk: convert tree entry functions to object_id
[gitweb.git] / builtin / mktag.c
index 65bb41e3cdd534c3dd48f772511f7ebd8c225813..810b24bef38b434c59718a6ac2883b7cfaafcd21 100644 (file)
@@ -27,8 +27,11 @@ static int verify_object(const struct object_id *oid, const char *expected_type)
        const unsigned char *repl = lookup_replace_object(oid->hash);
 
        if (buffer) {
+               struct object_id reploid;
+               hashcpy(reploid.hash, repl);
+
                if (type == type_from_string(expected_type))
-                       ret = check_sha1_signature(repl, buffer, size, expected_type);
+                       ret = check_object_signature(&reploid, buffer, size, expected_type);
                free(buffer);
        }
        return ret;