From 428ce2d0f2e7c8f0abfe74de03c7e3ca3cd1e615 Mon Sep 17 00:00:00 2001 From: Ryooooooga Date: Wed, 6 Oct 2021 22:51:24 +0900 Subject: [PATCH] Fix crash when new submodule url contains double quotes --- pkg/commands/submodules.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/commands/submodules.go b/pkg/commands/submodules.go index 9a5c49951..45e830d10 100644 --- a/pkg/commands/submodules.go +++ b/pkg/commands/submodules.go @@ -119,7 +119,7 @@ func (c *GitCommand) SubmoduleAdd(name string, path string, url string) error { func (c *GitCommand) SubmoduleUpdateUrl(name string, path string, newUrl string) error { // the set-url command is only for later git versions so we're doing it manually here - if err := c.RunCommand("git config --file .gitmodules submodule.%s.url %s", c.OSCommand.Quote(name), newUrl); err != nil { + if err := c.RunCommand("git config --file .gitmodules submodule.%s.url %s", c.OSCommand.Quote(name), c.OSCommand.Quote(newUrl)); err != nil { return err }