summaryrefslogtreecommitdiffstats
path: root/pkg/commands/files.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/commands/files.go')
-rw-r--r--pkg/commands/files.go8
1 files changed, 1 insertions, 7 deletions
diff --git a/pkg/commands/files.go b/pkg/commands/files.go
index d4560076f..05aa89978 100644
--- a/pkg/commands/files.go
+++ b/pkg/commands/files.go
@@ -251,13 +251,7 @@ func (c *GitCommand) ResetAndClean() error {
}
if len(submoduleConfigs) > 0 {
- for _, config := range submoduleConfigs {
- if err := c.SubmoduleStash(config); err != nil {
- return err
- }
- }
-
- if err := c.SubmoduleUpdateAll(); err != nil {
+ if err := c.ResetSubmodules(submoduleConfigs); err != nil {
return err
}
}