wrolpi/modules/repos
Roland b3f6fb144c
repos: refuse links anywhere in a git dir; check the directory again at clone time
- Any link in .git (objects, refs, logs, packed-refs, ...) refuses an import or update; git writes through them.
- A Repo's directory, and every directory between it and the media directory, must not be a link when it is cloned
  into or updated, not only when the Repo was added.
- Directories with control characters are refused; inspect's alternates names only the clone's own objects.
- Every git directory in .git/modules is sanitized, however deep (a planted HEAD can no longer hide one), and a
  submodule's .git file must point to one of them.
- sanitize_git_config checks every config before it rewrites any.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 09:54:41 -06:00
..
test repos: refuse links anywhere in a git dir; check the directory again at clone time 2026-10-07 09:54:41 -06:00
__init__.py Add a Repos module that mirrors git repositories (backend) 2026-10-06 16:56:09 -06:00
api.py repos: choose a Repo's directory; import a clone where it is 2026-10-06 19:24:49 -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: refuse links anywhere in a git dir; check the directory again at clone time 2026-10-07 09:54:41 -06:00
errors.py Add a Repos module that mirrors git repositories (backend) 2026-10-06 16:56:09 -06:00
lib.py repos: refuse links anywhere in a git dir; check the directory again at clone time 2026-10-07 09:54:41 -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: choose a Repo's directory; import a clone where it is 2026-10-06 19:24:49 -06:00