From d4bc0d2619ad1e2a4b48579ee2862ea5c62e9d53 Mon Sep 17 00:00:00 2001 From: joshaber Date: Wed, 4 May 2016 12:10:41 -0400 Subject: [PATCH] Use refreshIndex I love the smell of fresh indexes in the morning. --- lib/repository.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/repository.ts b/lib/repository.ts index e4c86ff..56a0573 100644 --- a/lib/repository.ts +++ b/lib/repository.ts @@ -276,7 +276,7 @@ export default class Repository { .then(relativePath => { return this.repoPool.enqueue(() => { return this.getRepo() - .then(repo => repo.index()) + .then(repo => repo.refreshIndex()) .then(index => { const entry = index.getByPath(relativePath) if (!entry) { return false }