Commit c48e87006cce65a8b69f60e0a38a9ac18b82366d

Ben Straub 2012-10-31T10:13:57

Ensure that non-error is not propagated

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/src/remote.c b/src/remote.c
index d3a2c45..26e93c0 100644
--- a/src/remote.c
+++ b/src/remote.c
@@ -295,6 +295,7 @@ int git_remote_save(const git_remote *remote)
 		int error = git_config_delete(config, git_buf_cstr(&buf));
 		if (error == GIT_ENOTFOUND) {
 			error = 0;
+			giterr_clear();
 		}
 		if (error < 0) {
 			git_buf_free(&buf);