From 14afb4967694f90497823568869e39c74054d35f Mon Sep 17 00:00:00 2001 From: joshaber Date: Fri, 8 Apr 2016 15:58:23 -0400 Subject: [PATCH] Use #index instead of #openIndex. #openIndex is going away: https://github.com/nodegit/nodegit/pull/989 --- src/git-repository-async.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/git-repository-async.js b/src/git-repository-async.js index e45c1e47e..373ee44bc 100644 --- a/src/git-repository-async.js +++ b/src/git-repository-async.js @@ -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