{{ message }}
Commit e1d07cc
Validate submodule names before creating module paths
Submodule names read from .gitmodules can become the separate Git directory path. Reject empty names, absolute or drive-qualified names, and parent components with either path separator at the shared path-construction boundary.
Add a local-repository regression test that demonstrates initialization cannot create a module repository outside the clone. This follows Git commit 0383bbb901 (submodule-config: verify submodule names as paths) while also accounting for os.path.join absolute-path semantics.
Advisory: GHSA-hmq2-w58f-27jc
Validation:
- pytest -q test/test_submodule.py (39 passed, 1 skipped, 1 xfailed)
- ruff check and format --check on changed files
- mypy git/objects/submodule/base.py1 parent 6e61b1d commit e1d07cc
2 files changed
Lines changed: 44 additions & 0 deletions

0 commit comments