X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=builtin-grep.c;h=66111de5148c17a156fdbfbc0d92b0c93c2b2c34;hb=3532998f407c5b4563ef15ffc52fe54e1f194993;hp=3d6e515f1f04f07de5d2237dee7cb62c6b66dd24;hpb=ffa0a7ab36c1e8a528e4cc0ff451f5fea68658a8;p=git.git diff --git a/builtin-grep.c b/builtin-grep.c index 3d6e515f..66111de5 100644 --- a/builtin-grep.c +++ b/builtin-grep.c @@ -455,7 +455,7 @@ static int external_grep(struct grep_opt *opt, const char **paths, int cached) push_arg("grep"); push_arg("-H"); if (opt->fixed) - push_arg("-H"); + push_arg("-F"); if (opt->linenum) push_arg("-n"); if (opt->regflags & REG_EXTENDED)