diff --git a/crates/ignore/src/overrides.rs b/crates/ignore/src/overrides.rs index 790006afe..a44b56f93 100644 --- a/crates/ignore/src/overrides.rs +++ b/crates/ignore/src/overrides.rs @@ -110,7 +110,8 @@ impl Override { self.0.matched(path, is_dir) }; if mat.is_none() - && (self.num_whitelists() > 0 && INVERTED_MATCHING.load(Ordering::Relaxed)) + && (self.num_whitelists() > 0 + && INVERTED_MATCHING.load(Ordering::Relaxed)) && !is_dir { return Match::Ignore(Glob::unmatched());