diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-10-01 22:13:32 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-10-02 08:09:42 +1000 |
commit | 2dc848506cb465cd46006b4a2a6dca2bdc5cf89d (patch) | |
tree | 58ea3cbafe116ced5bd7fbf7197c6cecc6ac0db8 /pkg/commands/files.go | |
parent | 9125e3c0c6f9c2f83ba74f33b5899054b8641218 (diff) |
bulk submodule menu
Diffstat (limited to 'pkg/commands/files.go')
-rw-r--r-- | pkg/commands/files.go | 8 |
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 } } |