Files
lazygit/pkg/commands
Stefan HallerandClaude Opus 5.5 bb4c681330 Only recognize .gitmodules keys and section headers at the start of a line
If a submodule's url contains "path=", for example
"https://example.com/repo?path=other", lazygit takes "other" for the
submodule's path and loses the url. Also, a commented-out section in
.gitmodules shows up as a submodule.

The regexes that parse .gitmodules aren't anchored, so they find a key
or a section header anywhere in a line. Anchor them at the start of the
line.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 23:59:32 +01:00
..