Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Eliminate Scalar::Util usage from private-Error.pm
[gitweb.git]
/
repo-config.c
diff --git
a/repo-config.c
b/repo-config.c
index 743f02b7de7b3b819d3db29ddfcdcf8ebacaccc4..c7ed0ac9c95967b45917ab035099257d3e6f0107 100644
(file)
--- 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)