Skip to content

Instantly share code, notes, and snippets.

@saltybeagle
Created May 2, 2012 15:26
Show Gist options
  • Save saltybeagle/2577453 to your computer and use it in GitHub Desktop.
Save saltybeagle/2577453 to your computer and use it in GitHub Desktop.
svn2git all GForge repositories
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