Whoops. Bring back pathIsIgnored.

This commit is contained in:
joshaber 2016-03-25 12:46:49 -04:00
parent b2b8370166
commit aee053dc10

View File

@ -148,6 +148,7 @@ export default class GitRepositoryAsync {
if (!this.path) {
this.path = repo.path().replace(/\/$/, '')
}
return this.path
})
}
@ -463,6 +464,7 @@ export default class GitRepositoryAsync {
return Promise.all([this.getRepo(), this.getWorkingDirectory()])
.then(([repo, wd]) => {
const relativePath = this.relativize(_path, wd)
return Git.Ignore.pathIsIgnored(repo, relativePath)
})
.then(ignored => Boolean(ignored))
}