Saturday, February 1, 2014

Converting Googlecode repo from Subversion to Git

I figured this would be simple. Following the instructions I wind up with an error on the git svn command

ceylon:dev andrew$ git svn clone --stdlayout http://myproject.googlecode.com/svn/  myproject
Can't locate SVN/Core.pm in @INC (@INC contains: /usr/local/git/lib/perl5/site_perl/5.16.2/darwin-thread-multi-2level /usr/local/git/lib/perl5/site_perl/5.16.2 /usr/local/git/lib/perl5/site_perl /Library/Perl/5.16/darwin-thread-multi-2level /Library/Perl/5.16 /Network/Library/Perl/5.16/darwin-thread-multi-2level /Network/Library/Perl/5.16 /Library/Perl/Updates/5.16.2 /System/Library/Perl/5.16/darwin-thread-multi-2level /System/Library/Perl/5.16 /System/Library/Perl/Extras/5.16/darwin-thread-multi-2level /System/Library/Perl/Extras/5.16 .) at /usr/local/git/lib/perl5/site_perl/Git/SVN/Utils.pm line 6.
BEGIN failed--compilation aborted at /usr/local/git/lib/perl5/site_perl/Git/SVN/Utils.pm line 6.
Compilation failed in require at /usr/local/git/lib/perl5/site_perl/Git/SVN.pm line 26.
BEGIN failed--compilation aborted at /usr/local/git/lib/perl5/site_perl/Git/SVN.pm line 33.
Compilation failed in require at /usr/local/git/libexec/git-core/git-svn line 25.

BEGIN failed--compilation aborted at /usr/local/git/libexec/git-core/git-svn line 25.

After some poking around I realized I had to disable the version of Git that comes with Xcode due to some incompatible something or other. So I did

sudo mv /usr/bin/git /usr/bin/git-xcode

And installed git from http://git-scm.com/download/mac

So, apparently this git install isn't 100% awesome. To convert my repository I need to use Xcode git, so

/usr/bin/git-xcode svn clone --stdlayout http://myproject.googlecode.com/svn/  myproject

This works, yay!


No comments:

Post a Comment