Skip to content

Commit ff75906

Browse files
committed
fix is_artifact() logic (docs == 'executable *and* included in .gitignore')
1 parent 8b03007 commit ff75906

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/walk_parallel/single_threaded.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ pub fn is_artifact(
196196
if REGEX.is_match(path_str) || (path_str == "tags" && vimtags) {
197197
true
198198
} else if let Some(ref x) = *gitignore {
199-
if is_executable(path_str, metadata) || REGEX_GITIGNORE.is_match(path_str) {
199+
if is_executable(path_str, metadata) && REGEX_GITIGNORE.is_match(path_str) {
200200
x.is_match(full_path)
201201
} else {
202202
false

0 commit comments

Comments
 (0)