diff options
-rw-r--r-- | worktree.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/worktree.go b/worktree.go index 63eb25b..9c840ea 100644 --- a/worktree.go +++ b/worktree.go @@ -467,6 +467,10 @@ func (w *Worktree) Submodules() (Submodules, error) { } c, err := w.r.Config() + if err != nil { + return nil, err + } + for _, s := range m.Submodules { l = append(l, w.newSubmodule(s, c.Submodules[s.Name])) } |