Glad it worked out!

On 08/09/2012 08:22 AM, Daniel Pocock wrote:
> 
> 
> https://github.com/ganglia/monitor-core/branches
> 
> 3.1 branch is in git now, just for essential security updates to aid the
> legacy packages on Debian and Fedora (and others?)
> 
> 
> 
> https://github.com/ganglia/monitor-core/tags
> 
> More historic tags are there too
> 
> 
> 
> Here is how I did it, for anyone who wants to play with this, migrate
> other branches, or do similar things for other projects coming off SVN:
> 
> 
> 
> #!/bin/bash
> 
> set -x
> set -e
> 
> 
> SVN_REPO=https://ganglia.svn.sourceforge.net/svnroot/ganglia
> GIT_REPO=g...@github.com:ganglia/monitor-core.git
> 
> TMP1=`pwd`/tmp1
> TMP2=`pwd`/tmp2
> 
> 
> git svn clone \
>    --no-metadata -A authors.txt \
>    --trunk=trunk/monitor-core \
>    --branches=branches --tags=tags \
>    ${SVN_REPO} \
>   ${TMP1}
> 
> mkdir ${TMP2}
> cd ${TMP2}
> git init --bare
> git symbolic-ref HEAD refs/heads/trunk
> 
> cd ${TMP1}
> git remote add bare ${TMP2}
> git config remote.bare.push 'refs/remotes/*:refs/heads/*'
> git push bare
> 
> cd ${TMP2}
> git branch -m trunk master
> git for-each-ref --format='%(refname)' refs/heads/tags | \
>    cut -d / -f 4 | \
>    while read ref;
>    do
>       git tag "$ref" "refs/heads/tags/$ref"
>       git branch -D "tags/$ref"
>    done
> 
> git remote add origin ${GIT_REPO}
> git config branch.master.remote origin
> 
> git branch -m monitor-core-3.1 release/3.1
> git checkout release/3.1
> git config branch.release/3.1.merge refs/heads/release/3.1
> 
> # push the branch up to github:
> git push origin release/3.1
> 
> # push the old tags up to github:
> git push --tags origin release/3.1
> 
> 
> The script is inspired by the process on my blog:
> 
> http://www.pocock.com.au/migrating-a-sourceforge-project-from-subversion-to-git
> 
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and 
> threat landscape has changed and how IT managers can respond. Discussions 
> will include endpoint security, mobile security and the latest in malware 
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Ganglia-developers mailing list
> Ganglia-developers@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ganglia-developers


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Ganglia-developers mailing list
Ganglia-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ganglia-developers

Reply via email to