summaryrefslogtreecommitdiffstats
path: root/pkg/commands/git_commands/submodule.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/commands/git_commands/submodule.go')
-rw-r--r--pkg/commands/git_commands/submodule.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/commands/git_commands/submodule.go b/pkg/commands/git_commands/submodule.go
index d9d1ccd20..3f69ce875 100644
--- a/pkg/commands/git_commands/submodule.go
+++ b/pkg/commands/git_commands/submodule.go
@@ -141,7 +141,7 @@ func (self *SubmoduleCommands) Delete(submodule *models.SubmoduleConfig) error {
// We may in fact want to use the repo's git dir path but git docs say not to
// mix submodules and worktrees anyway.
- return os.RemoveAll(filepath.Join(self.repoPaths.WorktreeGitDirPath(), "modules", submodule.Path))
+ return os.RemoveAll(filepath.Join(self.repoPaths.WorktreeGitDirPath(), "modules", submodule.Name))
}
func (self *SubmoduleCommands) Add(name string, path string, url string) error {