Vendored files are not ignored when multiple folder inputs are given
Nixinova opened this issue · comments
Folders like .git
etc are not ignored by default when multiple folder inputs are given (e.g. linguist -a folderA folderB
).
# folderA
file.js
# folderB
.gitignore
ignored
notignored.txt
> (await linguist(['folderA'])).files.results
{
'folderA/file.js': 'JavaScript'
}
> (await linguist(['folderB'])).files.results
{
'folderB/notignored.txt': 'Text'
}
> (await linguist(['folderA','folderB'])).files.results
{
'folderA/.git/config': null,
'folderA/.git/description': null,
// ... whole .git folder
'folderA/file.js': 'JavaScript',
'folderB/notignored.txt': 'Text'
// NOT `ignored` - good, gitattributes works still
Example
Gitattributes is still read correctly however.
Looks like using e.g. linguist -a -i foo
triggers this issue as well
Gitattributes seems not to be properly read.
Properly fixed now