Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
utf8.c: remove print_wrapped_text()
[gitweb.git]
/
builtin-grep.c
diff --git
a/builtin-grep.c
b/builtin-grep.c
index 01be9bf7ff74731969384cc91dad2e20d08d81bc..9a9e3fccd58adb9c984707e9398fa194ad7284a7 100644
(file)
--- a/
builtin-grep.c
+++ b/
builtin-grep.c
@@
-433,7
+433,11
@@
static int external_grep(struct grep_opt *opt, const char **paths, int cached)
if (opt->color_external && strlen(opt->color_external) > 0)
push_arg(opt->color_external);
+ } else {
+ unsetenv("GREP_COLOR");
+ unsetenv("GREP_COLORS");
}
+ unsetenv("GREP_OPTIONS");
hit = 0;
argc = nr;