Commit 6282aed6 authored by Wouter's avatar Wouter

Another - hopefully better - attempt to properly mirror all branches

parent 224d7532
Pipeline #301 passed with stages
in 2 minutes and 34 seconds
......@@ -22,7 +22,4 @@ echo "${GITMIRROR_DEPLOY_KEY}" > $HOME/.ssh/git-mirror
chmod 0600 $HOME/.ssh/git-mirror
cd "$localpath"
git remote add --mirror=push gitmirror "${mirror}"
git fetch gitmirror
git push --mirror gitmirror
git remote remove gitmirror
git push --prune "${mirror}" +refs/remotes/origin/*:refs/heads/* +refs/tags/*:refs/tags/*
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment