aboutsummaryrefslogtreecommitdiffstats
path: root/worktree.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2017-07-19 00:34:44 +0200
committerMáximo Cuadros <mcuadros@gmail.com>2017-07-19 00:34:44 +0200
commite92973bea8d9a8ee5c06777ce34a1363ea018371 (patch)
treee96a2cf68924d1764e402c4dca945c5113ba20e6 /worktree.go
parent07305b25d9d310a3aa92bd636068809f08ab00a2 (diff)
downloadgo-git-e92973bea8d9a8ee5c06777ce34a1363ea018371.tar.gz
worktree: submodules, missing err validation on load config
Diffstat (limited to 'worktree.go')
-rw-r--r--worktree.go4
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]))
}