diff options
author | nulltoken <emeric.fermas@gmail.com> | 2011-07-10 07:48:52 +0200 |
---|---|---|
committer | nulltoken <emeric.fermas@gmail.com> | 2011-07-10 19:17:07 +0200 |
commit | 7757be33a249097e6f6a5d9c0065aff5e083ad2e (patch) | |
tree | 01375a0b7d7f90728fc8a768a264c26357d52b59 /src/commit.c | |
parent | d37ba6720de36b5121f4e978f65ab5703d12523f (diff) | |
download | libgit2-7757be33a249097e6f6a5d9c0065aff5e083ad2e.tar.gz |
reflog: Fix reflog writer/reader
- Use a space to separate oids and signature
- Enforce test coverage
- Make test run in a temporary folder in order not to alter the test repository
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 */ |