Commit 1558b51
test: fix git2_ops_tests submodule name in write_gitmodules test
The `test_with_submodule_write_gitmodules_updates_existing` test was failing
because the test added a submodule using the `submod add` command which, when
using the git2 fallback, names the submodule entry in `.gitmodules` by its path
("lib/writesub") rather than the user-supplied name ("write-sub").
This commit updates the test to dynamically look up the correct submodule
name and then sets `active = false` so that the `write_gitmodules` assertion
correctly validates that the git configuration captures the active flag.
Co-authored-by: bashandbone <89049923+bashandbone@users.noreply.github.com>1 parent 2556667 commit 1558b51
1 file changed
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
395 | 395 | | |
396 | 396 | | |
397 | 397 | | |
398 | | - | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
399 | 406 | | |
400 | | - | |
| 407 | + | |
401 | 408 | | |
402 | 409 | | |
403 | 410 | | |
| |||
0 commit comments