git svn migration failing with svn 1.8 -
i'm following steps in: http://git-scm.com/book/en/v2/git-and-other-systems-git-as-a-client
to move svn repository git. local svn version is:
$ svn --version svn, version 1.8.10 (r1615264) compiled aug 25 2014, 10:52:18 on x86_64-apple-darwin12.5.0
git version:
$ git --version git version 2.1.0
when clone repository error reading local file system format:
$ git svn clone file:///tmp/test-svn -s initialized empty git repository in /private/tmp/test-svn/.git/ couldn't open repository: unable connect repository @ url 'file:///tmp/test-svn': unable open ra_local session url: unable open repository 'file:///tmp/test-svn': expected fs format between '1' , '4'; found format '6' @ /usr/local/cellar/git/2.1.0/lib/perl5/site_perl/git/svn.pm line 310
according svn release note fs format 6 introduced in svn 1.8: http://subversion.apache.org/docs/release-notes/1.8.html#revprop-packing
could git 2.1 perl script isn't yet compatible svn release? more importantly how can svn repository converted git?
i got answer on git-users email list.
the solution run local svnserver , use 'svn' protocol when running 'git svn clone' instead of 'file' protocol. avoids git-svn needing parse svn 1.8 file format.
so changed /tmp
directory , ran svnserve -d
. able git svn clone svn://127.0.0.1/test-svn -s
, went perfectly. stopped svnserver , deleted temporary svn repository.
Comments
Post a Comment