deco - don't call check-ignore without files

This commit is contained in:
Johannes Rieken
2017-10-18 12:15:18 +02:00
parent 5f24275930
commit c9c409cb7b
+5
View File
@@ -650,6 +650,11 @@ export class Repository implements Disposable {
filePaths = filePaths.filter(filePath => !path.relative(this.root, filePath).startsWith('..'));
if (filePaths.length === 0) {
// nothing left
return Promise.resolve(new Set<string>());
}
const child = this.repository.stream(['check-ignore', ...filePaths]);
const onExit = exitCode => {