mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
If there isn't an index entry then it's not a submodule.
This commit is contained in:
@@ -233,6 +233,8 @@ export default class GitRepositoryAsync {
|
||||
// TODO: This'll probably be wrong if the submodule doesn't exist in the
|
||||
// index yet? Is that a thing?
|
||||
const entry = index.getByPath(_path)
|
||||
if (!entry) return false
|
||||
|
||||
return entry.mode === submoduleMode
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user