Project

General

Profile

SourceCodeRepositories » History » Version 11

Denis 'GNUtoo' Carikli, 04/10/2019 12:54 PM

1 10 Denis 'GNUtoo' Carikli
h1. Source code repositories
2 1 Wolfgang Wiedmeyer
3 10 Denis 'GNUtoo' Carikli
h2. Mirrors 
4
5 11 Denis 'GNUtoo' Carikli
h3. Pushing mirrors with SSH access
6 1 Wolfgang Wiedmeyer
7 9 Denis 'GNUtoo' Carikli
If you have SSH access, you can then clone the git repository directly on the server. This is way faster than having to push the code from a slow ADSL connection for instance.
8 1 Wolfgang Wiedmeyer
9
# Check the LineageOS manifest for newly added repos
10 3 Wolfgang Wiedmeyer
# If there are any, add them in the LineageOS-mirror manifest and push the changes to git.replicant.us
11
# If there are any, create the newly added repos in the LineageOS-mirror group (using the exact same names the repos have in LineageOS)
12 5 Joonas Kylmälä
<pre>
13 7 Denis 'GNUtoo' Carikli
# sudo -iu git
14
$ cd repositories/LineageOS-mirror/
15
$ git clone --mirror git://github.com/LineageOS/<repo-name>.git
16
$ cd <repo-name>.git
17
$ touch git-daemon-export-ok
18 1 Wolfgang Wiedmeyer
</pre>
19
20 11 Denis 'GNUtoo' Carikli
h3. Pushing the code without SSH
21 6 Denis 'GNUtoo' Carikli
22 1 Wolfgang Wiedmeyer
h3. cgit
23
24 11 Denis 'GNUtoo' Carikli
See [[Cgit]] for where to adjust its configuration. 
25
26
Once the code is pushed you will need to adjust the cgit configuration to make it appear on the web interface.
27 1 Wolfgang Wiedmeyer
28
h3. Bundles
29
30
It's worth to check if all mirror repos have bundles in place.
31
32
h3. CAF variants
33
34
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.
35
36
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.