From e92973bea8d9a8ee5c06777ce34a1363ea018371 Mon Sep 17 00:00:00 2001 From: Máximo Cuadros Date: Wed, 19 Jul 2017 00:34:44 +0200 Subject: worktree: submodules, missing err validation on load config --- worktree.go | 4 ++++ 1 file changed, 4 insertions(+) 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])) } -- cgit