summaryrefslogtreecommitdiff
path: root/src/clone.c
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2015-08-04 11:18:21 +0200
committerCarlos Martín Nieto <cmn@dwim.me>2015-08-04 11:18:21 +0200
commitcf716beed2f4729cf01a9822d75b4f1ebf7ccbf1 (patch)
tree2e02b7fcc28a00c0eede602b8880b83a9fd35c77 /src/clone.c
parent69adb781e17f77b19d66613ad7e52c38d6ac64e1 (diff)
parentef4857c2b3d4a61fd1d840199afc92eaf2e15345 (diff)
downloadlibgit2-cf716beed2f4729cf01a9822d75b4f1ebf7ccbf1.tar.gz
Merge pull request #3351 from ethomson/error_buf
Error handling: use buffers, improved OOM handling
Diffstat (limited to 'src/clone.c')
-rw-r--r--src/clone.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/clone.c b/src/clone.c
index 070daf94d..6b4b7ae53 100644
--- a/src/clone.c
+++ b/src/clone.c
@@ -440,14 +440,14 @@ int git_clone(
if (error != 0) {
git_error_state last_error = {0};
- giterr_capture(&last_error, error);
+ giterr_state_capture(&last_error, error);
git_repository_free(repo);
repo = NULL;
(void)git_futils_rmdir_r(local_path, NULL, rmdir_flags);
- giterr_restore(&last_error);
+ giterr_state_restore(&last_error);
}
*out = repo;