Gitting git-svn working on mac
17Feb08
I woke up fired up and ready to try git; unfortunately, it is three hours later and I’m just gitting started. The problem was getting git-svn to work. Despite the numerous posts including: post1 post2 post3 and post4 I absolutely could not get it to work. Finally, here are two techniques that worked for me:
Port Method
sudo port install subversion-perlbindings
sudo port install git-core
or Method2
follow Fraser Spiers post
except
export PERL5LIB="/opt/subversion/lib/svn-perl:$PERL5LIb"
In other words, the package installs the subversion perl bindings in /opt/subversion/lib/svn-perl not /usr/local/lib/svn-perl.
Time to start gitting it done!
Filed under: Uncategorized | 1 Comment
Search
-
You are currently browsing the RubyHam weblog archives.
I finally took the plunge and installed MacPorts. After a whole lot of downloading and compiling dependencies I was sure
sudo port install git-core +svn
Would deliver the coveted git-svn.
I too was getting the “Command not found” error. Then I looked around a bit and found that it is, in fact, present at:
/opt/local/libexec/git-core/git-svn
So I made a symlink to that (since there are a LOT of git- libs and I don’t want them all loading):
sudo ln -s /opt/local/libexec/git-core/git-svn /opt/local/bin/git-svn
Hope that helps a few others. Cheers!