From bb14169e75675f374ac16fd804384f567ff19893 Mon Sep 17 00:00:00 2001 From: joshaber Date: Wed, 2 Dec 2015 14:39:16 -0500 Subject: [PATCH] Take refreshStatusForPath into account for _refreshingCount. --- src/git-repository-async.js | 3 +++ 1 file changed, 3 insertions(+) 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