wrolpi/modules/repos
Roland 9e8947767b
repos: hold submodule git directories to the same rules as the repo's
The checks covered .git but not the submodules' git directories in
.git/modules: a linked submodule config was skipped (and still read by
git), and a submodule's commondir or alternates were not refused.  Every
git directory now needs a regular config and must not borrow another
directory, and nothing under .git/modules may be a link; otherwise the
update fails.  A git directory is one with HEAD and objects (a ref named
HEAD is not one).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 18:24:48 -06:00
..
test repos: hold submodule git directories to the same rules as the repo's 2026-10-06 18:24:48 -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: hold submodule git directories to the same rules as the repo's 2026-10-06 18:24:48 -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