Commit 2255b60e28baec41bebdbf6f8b547d65eb522236

Vicent Martí 2012-06-05T13:12:36

Merge pull request #714 from schu/config-enotfound config: do not set an error for GIT_ENOTFOUND

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/src/config.c b/src/config.c
index 618202c..d18b85c 100644
--- a/src/config.c
+++ b/src/config.c
@@ -391,7 +391,6 @@ int git_config_get_string(const char **out, git_config *cfg, const char *name)
 			return ret;
 	}
 
-	giterr_set(GITERR_CONFIG, "Config variable '%s' not found", name);
 	return GIT_ENOTFOUND;
 }