diff --git a/builtin/grep.c b/builtin/grep.c
index 1851797540c17791f03e0d2fb86f5463e4e3816e..1c359c2671536287d97f2049b27a390d33b51e88 100644 (file)
--- a/builtin/grep.c
+++ b/builtin/grep.c
}
if (!strcmp(var, "color.grep"))
- opt->color = git_config_colorbool(var, value, -1);
+ opt->color = git_config_colorbool(var, value);
else if (!strcmp(var, "color.grep.context"))
color = opt->color_context;
else if (!strcmp(var, "color.grep.filename"))
strcpy(opt.color_sep, GIT_COLOR_CYAN);
opt.color = -1;
git_config(grep_config, &opt);
- if (opt.color == -1)
- opt.color = git_use_color_default;
/*
* If there is no -- then the paths must exist in the working