SVN.pm::parse_svn_date: allow timestamps with a single-digit hour
[gitweb.git] / builtin / grep.c
index 3d924c25a574b5277e2d6d5dccafcb687f0e8b53..69ac2d8797ec32dc206425db0a2f3d7356810cfe 100644 (file)
@@ -524,9 +524,7 @@ static int grep_directory(struct grep_opt *opt, const struct pathspec *pathspec,
 
        fill_directory(&dir, pathspec);
        for (i = 0; i < dir.nr; i++) {
-               const char *name = dir.entries[i]->name;
-               int namelen = strlen(name);
-               if (!match_pathspec_depth(pathspec, name, namelen, 0, NULL))
+               if (!dir_path_match(dir.entries[i], pathspec, 0, NULL))
                        continue;
                hit |= grep_file(opt, dir.entries[i]->name);
                if (hit && opt->status_only)