X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=parse-options-cb.c;h=6db0921fc1fde3b5fbf829577bdd019ae95462e0;hb=c07aa5b218b9f519c29b5be71fe43cd79365dd37;hp=c248f667c1cc48075fb278a3309f74c7122502eb;hpb=05d88e6f7e8eb027a9e0ae77541e80f2346abe4f;p=git.git diff --git a/parse-options-cb.c b/parse-options-cb.c index c248f667c..6db0921fc 100644 --- a/parse-options-cb.c +++ b/parse-options-cb.c @@ -40,7 +40,7 @@ int parse_opt_color_flag_cb(const struct option *opt, const char *arg, if (!arg) arg = unset ? "never" : (const char *)opt->defval; - value = git_config_colorbool(NULL, arg, -1); + value = git_config_colorbool(NULL, arg); if (value < 0) return opterror(opt, "expects \"always\", \"auto\", or \"never\"", 0);