diff --git a/src/walk_parallel/single_threaded.rs b/src/walk_parallel/single_threaded.rs index e513907..f8f79f4 100644 --- a/src/walk_parallel/single_threaded.rs +++ b/src/walk_parallel/single_threaded.rs @@ -189,7 +189,7 @@ pub fn is_artifact( if REGEX.is_match(path_str) || (path_str == "tags" && vimtags) { true } else if let Some(ref x) = *gitignore { - if metadata.permissions().mode() == 0o755 || REGEX_GITIGNORE.is_match(path_str) { + if !metadata.permissions().readonly() || REGEX_GITIGNORE.is_match(path_str) { x.is_match(full_path) } else { false