Commit 38f7d026dce92ec6774a8d6e13499ea83461f287

Russell Belfer 2012-11-20T14:50:36

Need to clear ignored error from config load

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/repository.c b/src/repository.c
index 92eb6e1..f82dc10 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;