diff --git a/pkg/commands/submodules.go b/pkg/commands/submodules.go index 880b09ab8..9a5c49951 100644 --- a/pkg/commands/submodules.go +++ b/pkg/commands/submodules.go @@ -69,7 +69,7 @@ func (c *GitCommand) SubmoduleStash(submodule *models.SubmoduleConfig) error { return nil } - return c.RunCommand("git -C %s stash --include-untracked", submodule.Path) + return c.RunCommand("git -C %s stash --include-untracked", c.OSCommand.Quote(submodule.Path)) } func (c *GitCommand) SubmoduleReset(submodule *models.SubmoduleConfig) error {