Closed voxpelli closed 1 year ago
The gitignore is throwing an exception when dealing with absolute paths if that path is the very same as the working directory.
This is the case when both expandDirectories: false and onlyFiles: false are set and the input is . and the cwd is set to an absolute path.
expandDirectories: false
onlyFiles: false
.
cwd
I ran across this when using globby in a project of mine and I reproduced it with a test case here and then fixed it.
globby
The gitignore is throwing an exception when dealing with absolute paths if that path is the very same as the working directory.
This is the case when both
expandDirectories: false
andonlyFiles: false
are set and the input is.
and thecwd
is set to an absolute path.I ran across this when using
globby
in a project of mine and I reproduced it with a test case here and then fixed it.