#!/bin/bash D=/tmp/git-svn-problem.$$ mkdir $D echo "Created $D" #trap { x=$?; rm -fr $D; exit $x; } SIGINT SIGHUP EXIT #D=$PWD #rm -fr repos #rm -fr work R=${D}/repos RURL=file://$R echo "Creating an SVN repository and workspace." # Create the SVN repository svnadmin create $R # Create a work space W=${D}/work svn co $RURL $W cd $W svn mkdir tags trunk branches date > trunk/file1 svn add trunk/file1 svn ci -m 'Initial version' # Initialize using git-svn echo "" echo "Initializing with git svn." echo "This hangs with recent snapshots." cd trunk git svn init -s $RURL rm file1 git svn fetch --all echo "" echo "Making a change in svn, then doing git svn rebase --all." echo "git svn rebase --all also hangs." # Make a change in svn date > file1 svn ci -m 'Updated file1' # git svn rebase --all git reset --hard git svn rebase --all rm -fr $D