mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-28 20:51:11 +00:00
Fixed a bug with the way commits are written
This commit is contained in:
parent
89f9fc6f4b
commit
9217bbda49
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user