Project

General

Profile

SourceCodeRepositories » History » Version 13

Denis 'GNUtoo' Carikli, 04/10/2019 01:00 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 12 Denis 'GNUtoo' Carikli
Replicant uses gitolite to handle git access.
23
24
gitolite is configured by configuration files stored in git. The repository that handles that is at:
25
<pre>
26
ssh://git@git.replicant.us/gitolite-admin
27
</pre>
28 13 Denis 'GNUtoo' Carikli
29
Examples of push URL can be found in the various repositories in cgit.
30
31
For instance for "omap-usb-boot":https://git.replicant.us/contrib/PaulK/omap-usb-boot/ we can see the following URL:
32
<pre>
33
ssh://git@git.replicant.us/PaulK/omap-usb-boot
34
</pre>
35
36 1 Wolfgang Wiedmeyer
h3. cgit
37
38 11 Denis 'GNUtoo' Carikli
See [[Cgit]] for where to adjust its configuration. 
39
40
Once the code is pushed you will need to adjust the cgit configuration to make it appear on the web interface.
41 1 Wolfgang Wiedmeyer
42
h3. Bundles
43
44
It's worth to check if all mirror repos have bundles in place.
45
46
h3. CAF variants
47
48
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.
49
50
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.