Merge pull request #1440 from Ryooooooga/feature/quote-git-C-path

Fix stash submodule #1436
This commit is contained in:
Mark Kopenga
2021-08-16 16:43:12 +02:00
committed by GitHub

View File

@@ -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 {