diff options
author | Vicent Martà <tanoku@gmail.com> | 2011-07-10 18:02:33 -0700 |
---|---|---|
committer | Vicent Martà <tanoku@gmail.com> | 2011-07-10 18:02:33 -0700 |
commit | 283eeefb0988f2981c846773e715b7e67a559b39 (patch) | |
tree | 62eaa9ac84469a423e56380fd8b5469dbbeb6b79 /src/commit.c | |
parent | 5f35d0ce771d8d16bb1180ea0d4362a8836b4a99 (diff) | |
parent | 7757be33a249097e6f6a5d9c0065aff5e083ad2e (diff) | |
download | libgit2-283eeefb0988f2981c846773e715b7e67a559b39.tar.gz |
Merge pull request #314 from nulltoken/ntk/fix-reflog
reflog: Fix reflog writer/reader
Diffstat (limited to 'src/commit.c')
-rw-r--r-- | src/commit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/commit.c b/src/commit.c index fc4848733..a6c19e596 100644 --- a/src/commit.c +++ b/src/commit.c @@ -209,12 +209,12 @@ int commit_parse_buffer(git_commit *commit, const void *data, size_t len) } commit->author = git__malloc(sizeof(git_signature)); - if ((error = git_signature__parse(commit->author, &buffer, buffer_end, "author ")) < GIT_SUCCESS) + if ((error = git_signature__parse(commit->author, &buffer, buffer_end, "author ", '\n')) < GIT_SUCCESS) return git__rethrow(error, "Failed to parse buffer"); /* Always parse the committer; we need the commit time */ commit->committer = git__malloc(sizeof(git_signature)); - if ((error = git_signature__parse(commit->committer, &buffer, buffer_end, "committer ")) < GIT_SUCCESS) + if ((error = git_signature__parse(commit->committer, &buffer, buffer_end, "committer ", '\n')) < GIT_SUCCESS) return git__rethrow(error, "Failed to parse buffer"); /* parse commit message */ |