Use refreshIndex
I love the smell of fresh indexes in the morning.
This commit is contained in:
Родитель
3f095c071e
Коммит
d4bc0d2619
|
@ -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 }
|
||||
|
|
Загрузка…
Ссылка в новой задаче