]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Modify gitlab-ci for mirroring
authorhiromipaw <hiro@torproject.org>
Fri, 1 Sep 2017 16:12:30 +0000 (18:12 +0200)
committerhiromipaw <hiro@torproject.org>
Fri, 1 Sep 2017 16:12:30 +0000 (18:12 +0200)
.gitlab-ci.yml

index 45e3052e40ba88a1505eb4ab5c3b3df121c354cf..ef28471549ec4fa110483390b7cdae6699e89e01 100644 (file)
@@ -30,11 +30,9 @@ build:
 update:
   script: 
     - echo "merging from torgit"
-    - git clone git@oniongit.eu:hiro/tor.git
-    - "cd tor"
-    - git remote add upstream https://git.torproject.org/tor.git
+    - git clone --bare https://git.torproject.org/tor.git
+    - "cd tor" 
     - git checkout master
     - git config --global user.email "labadmin@oniongit.eu"
     - git config --global user.name "gitadmin"
-    - git pull -Xtheirs upstream master
-    - git push origin master
+    - git push --mirror git@oniongit.eu:hiro/tor.git