summaryrefslogtreecommitdiff
path: root/repo-config.c
diff options
context:
space:
mode:
Diffstat (limited to 'repo-config.c')
-rw-r--r--repo-config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/repo-config.c b/repo-config.c
index 743f02b..c7ed0ac 100644
--- a/repo-config.c
+++ b/repo-config.c
@@ -118,7 +118,7 @@ static int get_value(const char* key_, const char* regex_)
if (do_all)
ret = !seen;
else
- ret = (seen == 1) ? 0 : 1;
+ ret = (seen == 1) ? 0 : seen > 1 ? 2 : 1;
free_strings:
if (repo_config)