wrolpi/modules/repos
Roland 1f71381dad
repos: choose a Repo's directory; import a clone where it is
A user's repos (like any Collection) may live outside the special
directories, so:

* New Repo has an optional Directory (relative to the media directory,
  empty or new).  Empty still means the Repos directory.  A repo in
  another directory is not ignored: its files are indexed unless the user
  ignores the directory.
* Import keeps the clone where it is (no move); the inspection says
  whether its directory is ignored.  The moved-destination checks are
  gone with the move.

Both share the directory rules: in the media directory, not a special
directory (or one holding one), nothing in config/ or tags/, and not
overlapping another Collection's directory.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 19:24:49 -06:00
..
test repos: choose a Repo's directory; import a clone where it is 2026-10-06 19:24:49 -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: 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: choose a Repo's directory; import a clone where it is 2026-10-06 19:24:49 -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