This can be local.

This commit is contained in:
joshaber
2015-12-10 17:57:13 -05:00
parent 15ab4b2383
commit 3ccf186150

View File

@@ -399,11 +399,10 @@ export default class GitRepositoryAsync {
// value can be passed to {::isStatusModified} or {::isStatusNew} to get more
// information.
getDirectoryStatus (directoryPath) {
let relativePath
// XXX _filterSBD already gets repoPromise
return this.repoPromise
.then(repo => {
relativePath = this.relativize(directoryPath, repo.workdir())
const relativePath = this.relativize(directoryPath, repo.workdir())
return this._filterStatusesByDirectory(relativePath)
})
.then(statuses => {