Code

Fix per-directory exclude handing for "git add"
[git.git] / builtin-grep.c
index c7b45c4d58dd718204e815363a77747d2d5aebb3..185876b0a6dc191bb5adc22cd5c2f012cd70e479 100644 (file)
@@ -343,7 +343,7 @@ static int external_grep(struct grep_opt *opt, const char **paths, int cached)
                        memcpy(name + 2, ce->name, len + 1);
                }
                argv[argc++] = name;
-               if (argc < MAXARGS && !ce_stage(ce))
+               if (argc < MAXARGS)
                        continue;
                status = flush_grep(opt, argc, nr, argv, &kept);
                if (0 < status)