summaryrefslogtreecommitdiff
path: root/src/config_cache.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/config_cache.c')
-rw-r--r--src/config_cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config_cache.c b/src/config_cache.c
index b23fd7b31..ca9602e56 100644
--- a/src/config_cache.c
+++ b/src/config_cache.c
@@ -72,7 +72,7 @@ int git_repository__cvar(int *out, git_repository *repo, git_cvar_cached cvar)
error = git_config_get_mapped(out,
config, data->cvar_name, data->maps, data->map_count);
- if (error == GIT_NOTFOUND)
+ if (error == GIT_ENOTFOUND)
*out = data->default_value;
else if (error < 0)