summaryrefslogtreecommitdiff
path: root/src/commit.c
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2011-12-09 01:38:46 +0100
committerVicent Marti <tanoku@gmail.com>2011-12-09 01:38:46 +0100
commit40e73d6f8886d27ae9c7df059d995221e6d84710 (patch)
tree4a6136463adbaa22a9aea3eb605d6c0dfbc97a7e /src/commit.c
parente92386876606c734fae9d2f5bd6c80861ccfe409 (diff)
parent97769280ba9938ae27f6e06cbd0d5e8a768a86b9 (diff)
downloadlibgit2-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.c3
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;
}