X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=builtin-repo-config.c;h=f60cee1dc54497d8ba00069a56e14b431f6a0852;hb=151602df00b8e5c5b4a8193f59a94b85f9b5aebc;hp=9cf12d32e5bc0be8034b16551336afee1e7d3a00;hpb=7bbf88c52b202d543310123e1bad9a44b2d6f028;p=git.git diff --git a/builtin-repo-config.c b/builtin-repo-config.c index 9cf12d32e..f60cee1dc 100644 --- a/builtin-repo-config.c +++ b/builtin-repo-config.c @@ -119,7 +119,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: free(repo_config);