wrolpi-help/docs/modules/repos/index.md
Roland 3a4496c60f
Repos: document the git Repos module
Adding a repo, Full history and Snapshot modes, branches, updates and
failures, browsing, README search under the Other tab, tagging,
deleting, the Repos Directory setting, and repos.yaml.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 12:10:01 -06:00

5.2 KiB

Repos

The Repos module keeps a local copy of git repositories (source code, documentation, datasets) and keeps each copy up to date while you have Internet access. You can browse a repo's files and read its README offline.

Repos Page

Adding a Repo

To add a repo, click Repos in the navigation bar, then click New Repo.

New Repo Form

Field Purpose
URL The https:// address of the repo, e.g. https://github.com/kiwix/kiwix-tools.
Name Optional. Defaults to the last part of the URL (kiwix-tools).
Tag Optional. A tagged repo is saved under its Tag in the Repos Directory.
Download Frequency How often WROLPi checks for updates. Weekly by default.
Mode Full history (default) or Snapshot. See Modes.
Branch Optional. Empty follows the repo's default branch (usually main or master).

WROLPi clones the repo in the background; its progress is on the Downloads page. Any git host that supports https:// works (GitHub, GitLab, Codeberg, Gitea, sourcehut, and others). SSH URLs, and repos that require a password, are not supported.

You can also paste the URL of a branch, e.g. https://github.com/kiwix/kiwix-tools/tree/dev, and WROLPi will follow that branch.

If two repos have the same name (e.g. two repos named utils from different owners), WROLPi asks you to choose another name, such as owner-utils.

Modes

Mode What is saved Size
Full history Every branch, tag and commit. Can be many times larger than the files.
Snapshot Only the latest commit of one branch. About the size of the files.

Full history is the default because storage is cheaper than a project you can no longer download. You can change the mode of a repo at any time on its Edit page; switching from Snapshot to Full history downloads the rest of the history on the next update.

Updates

Each repo is checked for updates on its Download Frequency. Click Update Now on a repo's page to check right away.

A repo is a mirror of its source:

  • Any change you make to a repo's files is discarded by the next update.
  • Branches deleted by the source are kept.
  • If the source rewrites its history (a "force push"), the commit WROLPi had is kept under refs/wrolpi/backup/ in the repo, so nothing is lost.

If the source disappears (deleted, made private, or no Internet), your copy is kept. The repo's page shows "The last update failed" with git's error, and the update is tried again later.

Warning! Git LFS files are not downloaded; they appear as small text files.

Browsing a Repo

To view a repo, click its name in the Repos table.

The repo's page shows its source, branch, size, and latest commit, then its files and its README. Click a directory to open it, or a file to preview it. The README of each directory is shown below its files.

Repo Page

A repo's name, owner, and README are searchable. Matching repos appear under the Other tab of the search results, with the part of the README that matched. Repos are also suggested by name as you type a search.

The individual files in a repo are not searchable; see Repos Directory.

Tagging and Deleting

To tag a repo, click Edit on the repo's page, then click Tag.

Tagging a repo can move it into the Tag's directory, like other Collections.

To delete a repo, click Edit on the repo's page, then click Delete.

WROLPi stops updating the repo. Its files are kept, unless you check Also delete its files.

Repos Directory

Repos are saved in the repos directory of your media directory, using the Repos Directory setting on the Settings page. The default is repos/%(repo_tag)s/%(repo_name)s.

Variable Value
%(repo_name)s The repo's name.
%(repo_tag)s The repo's Tag (empty if it has no Tag).
%(repo_owner)s The owner from the URL (e.g. kiwix).
%(repo_host)s The host from the URL (e.g. github.com).

The repos directory is always ignored when WROLPi refreshes your files, so the many files of a repo do not crowd your file search. If you change the Repos Directory to somewhere outside repos, those repos' files will be indexed.

Config

Your repos are saved in repos.yaml in the config directory. If your database is lost, your repos (and their download schedules) are restored from this file.