Skip to content

Commit c011531

Browse files
jdxclaude
andcommitted
fix(prepare): stricter gitmodules section matching
Match [submodule " or [submodule" specifically to avoid false matches on hypothetical sections like [submodule-config]. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 3480584 commit c011531

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/prepare/providers/git_submodule.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ impl GitSubmodulePrepareProvider {
3838
if line.starts_with('#') || line.starts_with(';') {
3939
return None;
4040
}
41-
if line.starts_with("[submodule") {
41+
if line.starts_with("[submodule ") || line.starts_with("[submodule\"") {
4242
in_submodule_section = true;
4343
return None;
4444
}

0 commit comments

Comments
 (0)