wrolpi/modules/repos
Roland d3cf1b7282
repos: close the remaining ways a clone's .git can redirect git
* A clone with .git/commondir (git then reads another directory's config,
  refs and objects, so the sanitized config is not the one read) or
  alternates is neither imported nor updated.
* branch.*.remote/merge are no longer kept: WROLPi checks out with -B and
  needs neither, and branch.<name>.remote can be a URL git uses to resolve
  relative submodule URLs.
* An import directory is resolved and confined to the media directory
  before anything about it is reported, so a link cannot reveal whether a
  path outside exists.
* git_command also turns off automatic maintenance (gc.auto,
  maintenance.auto) and core.alternateRefsCommand.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 18:18:39 -06:00
..
test repos: close the remaining ways a clone's .git can redirect git 2026-10-06 18:18:39 -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: close the remaining ways a clone's .git can redirect git 2026-10-06 18:18:39 -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