Initialize the repository and sync:
mkdir lineage_mirror cd lineage_mirror repo init -u https://git.replicant.us/replicant/manifest.git -b LineageOS-mirror repo sync
sudo -iu git mkdir repositories/LineageOS-mirror/<repo-name>.git cd repositories/LineageOS-mirror/<repo-name>.git git --bare init touch git-daemon-export-ok
repo sync
cd path/to/new/repo git push git@git.replicant.us:LineageOS-mirror/REPO_NAME HEAD:refs/heads/cm-13.0
Repeat these steps for all newly added repos.
repo forall -c ' echo "Pushing $REPO_PROJECT"; git push git@git.replicant.us:LineageOS-mirror/$( echo $REPO_PROJECT | cut -c11- ).git HEAD:cm-13.0 '
It's worth to check if all mirror repos have bundles in place.
If we ever add support for a device that uses CAF branches of Qualcomm repos, we need to figure out how the mirror can still be updated and how releases can be tagged.
CAF branches are in the same repos as the default branches. So two or more local repos are created for one remote repo when the default branch and the CAF branches are checked out. The current setup for tagging a new release and updating the mirror assumes that there is one local repo for one remote repo.