wrolpi/modules/repos/test
Roland 0676535b24
repos: ignore the repos destination's own directory, and validate it
The constant `repos` was always ignored, but the Repos Directory
setting accepted any relative template (`library/%(repo_name)s`,
`%(repo_name)s`), whose checkouts (and .git) would be indexed.

The fixed directory at the start of the destination is now the ignored
one (on config import and when the setting is saved).  A destination
must start with a fixed directory, contain %(repo_name)s, use only the
repo variables, and not overlap another special directory; a
hand-edited config that breaks these rules falls back to the default.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 17:45:05 -06:00
..
__init__.py Add a Repos module that mirrors git repositories (backend) 2026-10-06 16:56:09 -06:00
test_api.py Add a Repos module that mirrors git repositories (backend) 2026-10-06 16:56:09 -06:00
test_config.py repos: history, Download ZIP, and submodules 2026-10-06 16:56:09 -06:00
test_downloader.py repos: validate branch names and repo directories 2026-10-06 16:56:09 -06:00
test_extras.py repos: pin the repo's host once, and only exempt its own host and port 2026-10-06 17:38:45 -06:00
test_lib.py repos: ignore the repos destination's own directory, and validate it 2026-10-06 17:45:05 -06:00
test_search.py repos: close the remaining submodule SSRF gaps 2026-10-06 16:56:10 -06:00