wrolpi/modules/repos/test
Roland 1e084958ee
repos: only update clones WROLPi made, from the Repo's URL
An update resets and cleans the clone, and fetched from whatever the
clone's `origin` said, trusting its .git/config.  A clone WROLPi did not
make (in the Repo's directory, or swapped in) could lose local work, be
mirrored from another repo, or redirect git with planted settings
(include.path, url.*.insteadOf, http.proxy, core.sshCommand, ...).

* WROLPi marks its clones (.git/wrolpi-repo holds the Repo's URL key);
  an unmarked clone, or `.git` that is not a directory, is not updated.
* Every update fetches the Repo's URL (origin is reset to it).
* Before an update, the clone's config (and its submodules') keeps only
  the settings WROLPi needs; a submodule's work tree must be inside the
  repo.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 17:51:16 -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: only update clones WROLPi made, from the Repo's URL 2026-10-06 17:51:16 -06:00
test_search.py repos: close the remaining submodule SSRF gaps 2026-10-06 16:56:10 -06:00