Skip to content

Commit

Permalink
fix: πŸ› don't feed root directory to ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Feb 27, 2021
1 parent 5859e28 commit a374485
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/git.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class FilesCache {
Object.entries(files)
.filter(([file]) => {
const filePath = path.resolve(root, file)
if (ultraIgnore && ultraIgnore.ignores(file)) return false
if (file && ultraIgnore && ultraIgnore.ignores(file)) return false
return (
filePath == directory || filePath.startsWith(directory + path.sep)
)
Expand Down

0 comments on commit a374485

Please sign in to comment.