diff options
| author | Vicent Marti <tanoku@gmail.com> | 2011-02-05 09:00:09 +0200 |
|---|---|---|
| committer | Vicent Marti <tanoku@gmail.com> | 2011-02-05 09:01:10 +0200 |
| commit | 5d773a6ee8542a5eaf94c34efcd27124c78e0bc7 (patch) | |
| tree | 64bafc8932bfe5d8794ccd97e301ebb0dd7aaadd /src/commit.c | |
| parent | ddc9e79ae2acf6afa9262909649b2984e1b3ff1a (diff) | |
| parent | 35786cb7e8d8b06aa211acbc741207d08973920b (diff) | |
| download | libgit2-5d773a6ee8542a5eaf94c34efcd27124c78e0bc7.tar.gz | |
Merge branch 'master' of https://github.com/jwiegley/libgit2
Diffstat (limited to 'src/commit.c')
| -rw-r--r-- | src/commit.c | 6 |
1 files 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; |
