diff --git a/src/git.coffee b/src/git.coffee index 54148af3c..a03d6b981 100644 --- a/src/git.coffee +++ b/src/git.coffee @@ -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