aboutsummaryrefslogtreecommitdiffstats
path: root/worktree.go
diff options
context:
space:
mode:
Diffstat (limited to 'worktree.go')
-rw-r--r--worktree.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/worktree.go b/worktree.go
index 62ad03b..1c89a02 100644
--- a/worktree.go
+++ b/worktree.go
@@ -716,7 +716,11 @@ func (w *Worktree) readGitmodulesFile() (*config.Modules, error) {
}
m := config.NewModules()
- return m, m.Unmarshal(input)
+ if err := m.Unmarshal(input); err != nil {
+ return m, err
+ }
+
+ return m, nil
}
// Clean the worktree by removing untracked files.