diff options
author | Stefan Haller <stefan@haller-berlin.de> | 2024-02-10 19:47:36 +0100 |
---|---|---|
committer | Stefan Haller <stefan@haller-berlin.de> | 2024-03-07 20:16:28 +0100 |
commit | ea87912a740464d1c69f4acad9c79efe6588d532 (patch) | |
tree | 3ee5bb52dcaf15593e36b7e6be78cf5cf953e82d /pkg/commands/git_commands/submodule.go | |
parent | ddcd9163018e264321046023d49ab176f71733c7 (diff) |
Fix deleting submodule where name and path are different
Diffstat (limited to 'pkg/commands/git_commands/submodule.go')
-rw-r--r-- | pkg/commands/git_commands/submodule.go | 2 |
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 { |