Commit 0cc28f2
test: add test for disable command with matching submodule name
This commit adds a test to ensure full test coverage for the scenario
where `.gitmodules` contains an entry exactly matching the configuration
name instead of falling back to searching by path. This verifies that
when a submodule is added manually to `.gitmodules` using its configured
name, `submod disable <name>` will find it and correctly update the
`active = false` property in `.gitmodules`.
Co-authored-by: bashandbone <89049923+bashandbone@users.noreply.github.com>1 parent 1558b51 commit 0cc28f2
1 file changed
Lines changed: 33 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
566 | 566 | | |
567 | 567 | | |
568 | 568 | | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
569 | 602 | | |
570 | 603 | | |
571 | 604 | | |
| |||
0 commit comments