summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2012-11-20 14:50:36 -0800
committerRussell Belfer <rb@github.com>2012-11-20 14:50:36 -0800
commit38f7d026dce92ec6774a8d6e13499ea83461f287 (patch)
treef9643f83cae87666e809ce263387ddcaed5e139a /src
parentcc6b4162de59013b5357ec35a1806fc5c9b29148 (diff)
downloadlibgit2-38f7d026dce92ec6774a8d6e13499ea83461f287.tar.gz
Need to clear ignored error from config load
Diffstat (limited to 'src')
-rw-r--r--src/repository.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/repository.c b/src/repository.c
index 92eb6e11d..f82dc108b 100644
--- a/src/repository.c
+++ b/src/repository.c
@@ -489,6 +489,8 @@ static int load_config(
error != GIT_ENOTFOUND)
goto on_error;
+ giterr_clear(); /* clear any lingering ENOTFOUND errors */
+
*out = cfg;
return 0;