diff options
Diffstat (limited to 'pkg/commands/files.go')
-rw-r--r-- | pkg/commands/files.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/commands/files.go b/pkg/commands/files.go index ef9c50187..530ad9a14 100644 --- a/pkg/commands/files.go +++ b/pkg/commands/files.go @@ -318,13 +318,13 @@ func (c *GitCommand) RemoveUntrackedFiles() error { // ResetAndClean removes all unstaged changes and removes all untracked files func (c *GitCommand) ResetAndClean() error { - submoduleConfigs, err := c.GetSubmoduleConfigs() + submoduleConfigs, err := c.Submodules.GetConfigs() if err != nil { return err } if len(submoduleConfigs) > 0 { - if err := c.ResetSubmodules(submoduleConfigs); err != nil { + if err := c.Submodules.ResetSubmodules(submoduleConfigs); err != nil { return err } } |