Skip to content

Commit

Permalink
or parents
Browse files Browse the repository at this point in the history
  • Loading branch information
seren5240 committed Mar 13, 2024
1 parent df312e3 commit 333043e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/language/src/target_language.rs
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ fn is_file_ignored(
let ignorer = ignore_builder.build()?;
let relativized_path = path.absolutize()?.canonicalize()?;
relativized_path.strip_prefix(ignore_dir)?;
if let Match::Ignore(_) = ignorer.matched(relativized_path, false) {
if let Match::Ignore(_) = ignorer.matched_path_or_any_parents(relativized_path, false) {
return Ok(true);
}
}
Expand Down

0 comments on commit 333043e

Please sign in to comment.