diff options
author | Vicent Marti <tanoku@gmail.com> | 2011-12-09 01:38:46 +0100 |
---|---|---|
committer | Vicent Marti <tanoku@gmail.com> | 2011-12-09 01:38:46 +0100 |
commit | 40e73d6f8886d27ae9c7df059d995221e6d84710 (patch) | |
tree | 4a6136463adbaa22a9aea3eb605d6c0dfbc97a7e /src/commit.c | |
parent | e92386876606c734fae9d2f5bd6c80861ccfe409 (diff) | |
parent | 97769280ba9938ae27f6e06cbd0d5e8a768a86b9 (diff) | |
download | libgit2-40e73d6f8886d27ae9c7df059d995221e6d84710.tar.gz |
Merge remote-tracking branch 'arrbee/git-buf-for-paths' into development
Conflicts:
tests-clay/clay_main.c
Diffstat (limited to 'src/commit.c')
-rw-r--r-- | src/commit.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/commit.c b/src/commit.c index bf6ca7855..5d077d54e 100644 --- a/src/commit.c +++ b/src/commit.c @@ -129,7 +129,8 @@ int git_commit_create( git_buf_puts(&commit, message); if (git_buf_oom(&commit)) { - error = git__throw(GIT_ENOMEM, "Not enough memory to build the commit data"); + error = git__throw(git_buf_lasterror(&commit), + "Not enough memory to build the commit data"); goto cleanup; } |