X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=commit.c;h=512b5d74d71dba46831192b740680243913166ba;hb=72fdfb50f721460e4cdff16fbe9c72d4ce6c668c;hp=67e11d7a4f211c1d2cf62635029f60597ff618de;hpb=90768daaa006516c7ae69ed89d7c2e67243dfac1;p=git.git diff --git a/commit.c b/commit.c index 67e11d7a..512b5d74 100644 --- a/commit.c +++ b/commit.c @@ -212,7 +212,8 @@ int parse_commit_buffer(struct commit *item, void *buffer, unsigned long size) if (memcmp(bufptr, "tree ", 5)) return error("bogus commit object %s", sha1_to_hex(item->object.sha1)); if (get_sha1_hex(bufptr + 5, parent) < 0) - return error("bad tree pointer in commit %s\n", sha1_to_hex(item->object.sha1)); + return error("bad tree pointer in commit %s", + sha1_to_hex(item->object.sha1)); item->tree = lookup_tree(parent); if (item->tree) n_refs++;