Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
sha1_file: convert read_object_with_reference to object_id
[gitweb.git]
/
commit.c
diff --git
a/commit.c
b/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.");