]> git.ipfire.org Git - thirdparty/git.git/blobdiff - builtin/grep.c
Merge branch 'en/fill-directory-exponential'
[thirdparty/git.git] / builtin / grep.c
index bdf1a4bbc99d77f814b2a2c7f130a2eedd7118d4..5e150f5825b3a549c8b676a3cf91e23d9a72a85c 100644 (file)
@@ -701,8 +701,6 @@ static int grep_directory(struct grep_opt *opt, const struct pathspec *pathspec,
 
        fill_directory(&dir, opt->repo->index, pathspec);
        for (i = 0; i < dir.nr; i++) {
-               if (!dir_path_match(opt->repo->index, dir.entries[i], pathspec, 0, NULL))
-                       continue;
                hit |= grep_file(opt, dir.entries[i]->name);
                if (hit && opt->status_only)
                        break;