wrolpi/modules/repos
Roland 89dad0570a
repos: import moves the clone where it was inspected; inspect never reads its config
* Inspect takes the URL the import will use, so a destination using
  %(repo_host)s/%(repo_owner)s is computed the same way by both (it used
  the origin's, while import used the submitted URL's).  Import requires
  the inspected destination, and refuses to move the clone anywhere else.
* Inspect runs git against a throwaway git directory holding the clone's
  HEAD, refs and (through alternates) objects, so the clone's unsanitized
  config (and anything it includes) is never read.
* A submodule's `.git` file is read as git reads it: only the line
  ending is trimmed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 19:11:17 -06:00
..
test repos: import moves the clone where it was inspected; inspect never reads its config 2026-10-06 19:11:17 -06:00
__init__.py Add a Repos module that mirrors git repositories (backend) 2026-10-06 16:56:09 -06:00
api.py repos: import moves the clone where it was inspected; inspect never reads its config 2026-10-06 19:11:17 -06:00
conftest.py repos: pin the repo's host once, and only exempt its own host and port 2026-10-06 17:38:45 -06:00
downloader.py repos: submodule links must stay in the repo; import checks before it moves 2026-10-06 19:03:07 -06:00
errors.py Add a Repos module that mirrors git repositories (backend) 2026-10-06 16:56:09 -06:00
lib.py repos: import moves the clone where it was inspected; inspect never reads its config 2026-10-06 19:11:17 -06:00
models.py repos: a clone is owned by a random token, not its URL 2026-10-06 18:58:18 -06:00
schema.py repos: import moves the clone where it was inspected; inspect never reads its config 2026-10-06 19:11:17 -06:00