Created
May 2, 2012 15:26
-
-
Save saltybeagle/2577453 to your computer and use it in GitHub Desktop.
svn2git all GForge repositories
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
migratdir=$PWD | |
for dir in `ls -1 */.svn/entries | xargs grep -H -l gforge | grep -E -o "^[^\/]+"`; do | |
echo $dir | |
mkdir /Users/bbieber/workspace/gitmigrat/$dir | |
cd /Users/bbieber/workspace/gitmigrat/$dir | |
svn2git `svn info $migratdir/$dir | grep ^Repository\ Root | cut -f 3 -d ' '` --authors $migratdir/gforgemigration/authors.txt --verbose | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment