Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVicent Martí <tanoku@gmail.com>2012-03-07 03:02:55 +0400
committerVicent Martí <tanoku@gmail.com>2012-03-07 03:11:43 +0400
commitcb8a79617b15e347f26d21cedde0f2b8670c1876 (patch)
tree459706192f41bbf15496f0c9bfe2e21b16a7e70b /src/commit.c
parent9d160ba85539bbc593369f597a07d42c2770dff4 (diff)
error-handling: Repository
This also includes droping `git_buf_lasterror` because it makes no sense in the new system. Note that in most of the places were it has been dropped, the code needs cleanup. I.e. GIT_ENOMEM is going away, so instead it should return a generic `-1` and obviously not throw anything.
Diffstat (limited to 'src/commit.c')
-rw-r--r--src/commit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commit.c b/src/commit.c
index 189d8fe9e..2e359929b 100644
--- a/src/commit.c
+++ b/src/commit.c
@@ -129,7 +129,7 @@ int git_commit_create(
git_buf_puts(&commit, message);
if (git_buf_oom(&commit)) {
- error = git__throw(git_buf_lasterror(&commit),
+ error = git__throw(GIT_ENOMEM,
"Not enough memory to build the commit data");
goto cleanup;
}