summaryrefslogtreecommitdiff
path: root/src/config.c
diff options
context:
space:
mode:
authorSven Strickroth <email@cs-ware.de>2020-09-09 11:55:25 +0200
committerSven Strickroth <email@cs-ware.de>2020-09-09 12:59:05 +0200
commit86d04918c0a8f405ccb0b86b7ff8419dfb7a0bd7 (patch)
treeb6932588c99330abf2d655a7c29c62e5a1437432 /src/config.c
parent1e987525b3bd86fc29e7ff67d973861efd22faf7 (diff)
downloadlibgit2-86d04918c0a8f405ccb0b86b7ff8419dfb7a0bd7.tar.gz
Fix parsing boolean config values when using git_config_get_mapped and git_config_lookup_map_value
Signed-off-by: Sven Strickroth <email@cs-ware.de>
Diffstat (limited to 'src/config.c')
-rw-r--r--src/config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config.c b/src/config.c
index 81f010fa2..79e9ea306 100644
--- a/src/config.c
+++ b/src/config.c
@@ -1238,7 +1238,7 @@ int git_config_lookup_map_value(
case GIT_CONFIGMAP_TRUE: {
int bool_val;
- if (git__parse_bool(&bool_val, value) == 0 &&
+ if (git_config_parse_bool(&bool_val, value) == 0 &&
bool_val == (int)m->type) {
*out = m->map_value;
return 0;