From 9217bbda49264e016e4c24950292cd2572ffed51 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Tue, 1 Feb 2011 05:00:52 -0500 Subject: [PATCH] Fixed a bug with the way commits are written --- src/commit.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/commit.c b/src/commit.c index c3fa3823f..49e23545e 100644 --- a/src/commit.c +++ b/src/commit.c @@ -91,8 +91,10 @@ int git_commit__writeback(git_commit *commit, git_odb_source *src) git_signature__write(src, "committer", commit->committer); - if (commit->message != NULL) - git__source_printf(src, "\n%s", commit->message); + if (commit->message != NULL) { + git__source_write(src, "\n", 1); + git__source_write(src, commit->message, strlen(commit->message)); + } /* Mark the commit as having all attributes */ commit->full_parse = 1;