]> git.ipfire.org Git - thirdparty/git.git/blobdiff - object.c
object-file API: have hash_object_file() take "enum object_type"
[thirdparty/git.git] / object.c
index d07678ef6dafed94d8be0d6b34f892b2001fc07e..588b8156f1d634a5cb9c25038961ca9a0d28d255 100644 (file)
--- a/object.c
+++ b/object.c
@@ -289,8 +289,7 @@ struct object *parse_object(struct repository *r, const struct object_id *oid)
 
        buffer = repo_read_object_file(r, oid, &type, &size);
        if (buffer) {
-               if (check_object_signature(r, repl, buffer, size,
-                                          type_name(type)) < 0) {
+               if (check_object_signature(r, repl, buffer, size, type) < 0) {
                        free(buffer);
                        error(_("hash mismatch %s"), oid_to_hex(repl));
                        return NULL;