diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2017-07-19 00:34:44 +0200 |
---|---|---|
committer | Máximo Cuadros <mcuadros@gmail.com> | 2017-07-19 00:34:44 +0200 |
commit | e92973bea8d9a8ee5c06777ce34a1363ea018371 (patch) | |
tree | e96a2cf68924d1764e402c4dca945c5113ba20e6 | |
parent | 07305b25d9d310a3aa92bd636068809f08ab00a2 (diff) | |
download | go-git-e92973bea8d9a8ee5c06777ce34a1363ea018371.tar.gz |
worktree: submodules, missing err validation on load config
-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])) } |