Pull refresh outside the work function.

Otherwise we deadlock lolololol
This commit is contained in:
joshaber
2016-03-30 11:23:54 -04:00
parent c0e9fde590
commit 6ba2f6d4b8

View File

@@ -738,9 +738,9 @@ export default class GitRepositoryAsync {
checkoutOptions.checkoutStrategy = Git.Checkout.STRATEGY.FORCE | Git.Checkout.STRATEGY.DISABLE_PATHSPEC_MATCH
return Git.Checkout.head(repo, checkoutOptions)
})
.then(() => this.refreshStatusForPath(_path))
})
})
.then(() => this.refreshStatusForPath(_path))
}
// Public: Checks out a branch in your repository.