Release /
lazygit v0.66.3
Remove a submodule in a linked worktree without breaking its counterpart in the main worktree.
Share
Before you upgrade to v0.66.3
`.gitmodules` parsing recognizes section headers and keys only at the start of a line, so comments no longer create entries and `path=` inside a URL no longer overrides a submodule path.
What changed in v0.66.3
Submodule removal now uses the linked worktree's own Git directory. Lazygit filters unsafe entries in `.gitmodules` and recognizes section headers and keys only at the start of a line.
Also: Submodules with unsafe names or paths are ignored; commented-out submodule entries and URLs containing `path=` are parsed correctly.
Available in the v0.66.3 release; requires Git.
Fixed and improved
Removing a submodule in a linked worktree no longer deletes the main worktree's submodule Git directory.
Seeded by @iluxav with Codex, from the release's public sources. Each change links to its evidence.