Skip to content

Commit

Permalink
fix: taurignore ignoreing folders not working for watch
Browse files Browse the repository at this point in the history
  • Loading branch information
anatawa12 committed Feb 19, 2024
1 parent 258494b commit 43795d6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tooling/cli/src/interface/rust.rs
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,10 @@ struct IgnoreMatcher(Vec<Gitignore>);
impl IgnoreMatcher {
fn is_ignore(&self, path: &Path, is_dir: bool) -> bool {
for gitignore in &self.0 {
if gitignore.matched(path, is_dir).is_ignore() {
if gitignore
.matched_path_or_any_parents(path, is_dir)
.is_ignore()
{
return true;
}
}
Expand Down

0 comments on commit 43795d6

Please sign in to comment.