Skip to content
Snippets Groups Projects
Commit 823e3f00 authored by Nikolaus Krismer's avatar Nikolaus Krismer
Browse files

#4 fixed

Adding ability to mirror tags in svn repository
parent 1175cb96
No related branches found
No related tags found
No related merge requests found
......@@ -35,6 +35,12 @@ if git config --get svn-remote.svn.url &> /dev/null;then
git reset --hard
git svn fetch
git svn rebase
git for-each-ref --format="%(objectname:short) %(refname)" refs/remotes/tags | while read ref; do
objectname=$(echo $ref | cut -d " " -f 1)
tagname=$(echo $ref | cut -d " " -f 2 | cut -d / -f 4)
GIT_COMMITTER_DATE="$(git show --format=%aD | head -1)" git tag -a $tagname -m "import '$tagname' tag from svn" $objectname
done
cd .git
git config --bool core.bare true
#bug fix for when gitlab is off-line during a cron job the bare setting gets set back to false when the git command fails
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment