mirror of
https://github.com/atom/atom.git
synced 2026-01-24 14:28:14 -05:00
Merge pull request #11410 from atom/update-nodegit-api-usage
Use #index instead of #openIndex.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user