wrolpi/modules/repos
Roland a79278e048
repos: never write through links in a clone's .git
A clone being imported is controlled by whoever put it in the media
directory.  A link at .git/wrolpi-repo or .git/config.wrolpi made the
marker and the sanitized config write wherever it pointed.  The marker
is written with O_NOFOLLOW (after removing a link), the sanitized config
through mkstemp, and a .git/config which is not a regular file is
refused (by Import, and before an update).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 18:13:21 -06:00
..
test repos: never write through links in a clone's .git 2026-10-06 18:13:21 -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 an existing git clone as a Repo 2026-10-06 18:09:52 -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: never write through links in a clone's .git 2026-10-06 18:13:21 -06:00
errors.py Add a Repos module that mirrors git repositories (backend) 2026-10-06 16:56:09 -06:00
lib.py repos: never write through links in a clone's .git 2026-10-06 18:13:21 -06:00
models.py repos: history, Download ZIP, and submodules 2026-10-06 16:56:09 -06:00
schema.py repos: import an existing git clone as a Repo 2026-10-06 18:09:52 -06:00