mirror of
https://github.com/atom/atom.git
synced 2026-01-23 05:48:10 -05:00
Guard against deleted submodule
This commit is contained in:
@@ -357,6 +357,6 @@ class Git
|
||||
@submodules = submodules
|
||||
|
||||
for submodulePath, submoduleRepo of @getRepo().submodules
|
||||
submoduleRepo.upstream = submodules[submodulePath].upstream
|
||||
submoduleRepo.upstream = submodules[submodulePath]?.upstream ? {ahead: 0, behind: 0}
|
||||
|
||||
@emit 'statuses-changed' unless statusesUnchanged
|
||||
|
||||
Reference in New Issue
Block a user