Project

General

Profile

SourceCodeRepositories » History » Version 8

Denis 'GNUtoo' Carikli, 04/09/2019 03:36 PM

1 6 Denis 'GNUtoo' Carikli
h1. Mirrors
2 1 Wolfgang Wiedmeyer
3
h2. Initial setup
4
5
Initialize the repository and sync:
6
<pre>
7
mkdir lineage_mirror
8
cd lineage_mirror
9
repo init -u https://git.replicant.us/replicant/manifest.git -b LineageOS-mirror
10
repo sync
11
</pre>
12
13
h2. Updating
14
15
# Check the LineageOS manifest for newly added repos
16 3 Wolfgang Wiedmeyer
# If there are any, add them in the LineageOS-mirror manifest and push the changes to git.replicant.us
17
# If there are any, create the newly added repos in the LineageOS-mirror group (using the exact same names the repos have in LineageOS)
18 5 Joonas Kylmälä
<pre>
19 7 Denis 'GNUtoo' Carikli
# sudo -iu git
20
$ cd repositories/LineageOS-mirror/
21
$ git clone --mirror git://github.com/LineageOS/<repo-name>.git
22
$ cd <repo-name>.git
23
$ touch git-daemon-export-ok
24 1 Wolfgang Wiedmeyer
</pre>
25
26
h2. Notes
27 6 Denis 'GNUtoo' Carikli
28
h3. cgit
29
30
See [[Cgit]] for where to adjust its configuration.
31 1 Wolfgang Wiedmeyer
32
h3. Bundles
33
34
It's worth to check if all mirror repos have bundles in place.
35
36
h3. CAF variants
37
38
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.
39
40
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.