Take refreshStatusForPath into account for _refreshingCount.

This commit is contained in:
joshaber
2015-12-02 14:39:16 -05:00
parent d0b148a97a
commit bb14169e75

View File

@@ -109,6 +109,8 @@ module.exports = class GitRepositoryAsync {
// Returns :: Promise<Number>
// The refreshed status bit for the path.
refreshStatusForPath (_path) {
this._refreshingCount++
let relativePath
return this.repoPromise
.then(repo => {
@@ -125,6 +127,7 @@ module.exports = class GitRepositoryAsync {
return status
})
.then(_ => this._refreshingCount--)
}
// Returns a Promise that resolves to the status bit of a given path if it has