Skip to content

Commit

Permalink
Merge c8732c7 into 69b3017
Browse files Browse the repository at this point in the history
  • Loading branch information
jackton1 committed Mar 16, 2023
2 parents 69b3017 + c8732c7 commit 8e67aca
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,6 @@ export async function run(): Promise<void> {
})
)
.filter(p => !!p)
.filter(p => !p.startsWith('!'))
.map(pt => {
const parts = pt.split(path.sep)

Expand All @@ -228,11 +227,7 @@ export async function run(): Promise<void> {
} else if (matchGitignoreFiles) {
paths = paths.filter(
p =>
![
...gitignoreMatchingFiles.filter(
pt => !paths.filter(pf => !pf.startsWith('!')).includes(pt)
)
].includes(p)
!gitignoreMatchingFiles.filter(gp => !paths.includes(gp)).includes(p)
)
}
}
Expand Down

0 comments on commit 8e67aca

Please sign in to comment.