Modify gitlab-ci for mirroring

This commit is contained in:
hiromipaw 2017-09-01 18:12:30 +02:00
parent 40288fd772
commit ef03aa3f8e

View 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