Use #index instead of #openIndex.

#openIndex is going away: https://github.com/nodegit/nodegit/pull/989
This commit is contained in:
joshaber 2016-04-08 15:58:23 -04:00
parent c4f60d0d42
commit 14afb49676

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