Open NickHeiner opened 3 years ago
+1
+1
A simpler way to demonstrate the bug:
globbySync([ "file.ext" ], { gitignore:true }) //works
globbySync([ "./file.ext" ], { gitignore:false }) //works
globbySync([ "./file.ext" ], { gitignore:true }) //throws an error
globby needs to get the relative path to the .gitignore
file before passing it to ignore.js.
globby should also detect if a file with no relative path to the gitignore file was accidentally passed.
Any updates on this?
When I pass a relative path, and
gitignore: true
, I get an error.Demo repo
When I run this, I get: