From f77ce209e0312d1b08acce401f4959e50c73b8df Mon Sep 17 00:00:00 2001 From: Jesse Duffield Date: Thu, 1 Oct 2020 22:16:38 +1000 Subject: [PATCH] use path not name --- 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 1cfebdb3d..101c6178c 100644 --- a/pkg/commands/submodules.go +++ b/pkg/commands/submodules.go @@ -73,7 +73,7 @@ func (c *GitCommand) SubmoduleStash(submodule *models.SubmoduleConfig) error { } func (c *GitCommand) SubmoduleReset(submodule *models.SubmoduleConfig) error { - return c.OSCommand.RunCommand("git submodule update --init --force %s", submodule.Name) + return c.OSCommand.RunCommand("git submodule update --init --force %s", submodule.Path) } func (c *GitCommand) SubmoduleUpdateAll() error {