]> git.ipfire.org Git - thirdparty/git.git/blobdiff - builtin/clean.c
Merge branch 'en/fill-directory-exponential'
[thirdparty/git.git] / builtin / clean.c
index c8c011d2ddfa3e2653535c6d4b36675a20a90031..f14c21b8638db70a5fa070096f7853e9900b5edd 100644 (file)
@@ -983,12 +983,6 @@ int cmd_clean(int argc, const char **argv, const char *prefix)
                if (!cache_name_is_other(ent->name, ent->len))
                        continue;
 
-               if (pathspec.nr)
-                       matches = dir_path_match(&the_index, ent, &pathspec, 0, NULL);
-
-               if (pathspec.nr && !matches)
-                       continue;
-
                if (lstat(ent->name, &st))
                        die_errno("Cannot lstat '%s'", ent->name);