wrolpi/modules/repos/test
Roland 68880463eb
repos: write sanitized git configs directly; one place formats a Repo's directory
* The sanitized config is written as INI by WROLPi (values quoted), so
  no kept value is ever passed to `git config` as an argument.
* origin's url and fetch refspec are set with --replace-all (a planted
  duplicate made `git config key value` fail), in both modes.
* format_repo_destination formats a Repo's directory from its name, Tag,
  owner and host, so a directory can be known before the Repo exists
  (Import shows it); Collection.format_destination uses it for repos.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 17:59:32 -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_ownership.py repos: write sanitized git configs directly; one place formats a Repo's directory 2026-10-06 17:59:32 -06:00
test_search.py repos: close the remaining submodule SSRF gaps 2026-10-06 16:56:10 -06:00