sha1_file: convert assert_sha1_type to object_id
[gitweb.git] / commit.c
index 00c99c7272badc2d5a8f16c29db7d4040f5eb4d3..6d77787af98cfa1011553d19ebda94d29cb4fca7 100644 (file)
--- a/commit.c
+++ b/commit.c
@@ -1517,7 +1517,7 @@ int commit_tree_extended(const char *msg, size_t msg_len,
        int encoding_is_utf8;
        struct strbuf buffer;
 
-       assert_sha1_type(tree->hash, OBJ_TREE);
+       assert_oid_type(tree, OBJ_TREE);
 
        if (memchr(msg, '\0', msg_len))
                return error("a NUL byte in commit log message not allowed.");