diff --git a/src/git-repository-async.js b/src/git-repository-async.js index 8e942ff1c..7f173b737 100644 --- a/src/git-repository-async.js +++ b/src/git-repository-async.js @@ -109,6 +109,8 @@ module.exports = class GitRepositoryAsync { // Returns :: Promise // 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