Merge pull request #11410 from atom/update-nodegit-api-usage

Use #index instead of #openIndex.
This commit is contained in:
Josh Abernathy 2016-04-08 16:41:35 -04:00
commit f22e63b498

View File

@ -305,7 +305,7 @@ export default class GitRepositoryAsync {
.then(relativePath => {
return this.repoPool.enqueue(() => {
return this.getRepo()
.then(repo => repo.openIndex())
.then(repo => repo.index())
.then(index => {
const entry = index.getByPath(relativePath)
if (!entry) return false