2

I'm having a problem with git-svn that may be related to the perl svn bindings. Even after installing new versions of subversion and git using homebrew, git-svn is using an old version of svn:

$ git svn --version
git-svn version 1.8.2.1 (svn 1.6.18)

$ svn --version
svn, version 1.7.7 (r1393599)

How do I make git-svn use the newer version of svn?

Community
  • 1
  • 1
datguy
  • 623
  • 8
  • 24
  • http://stackoverflow.com/questions/4341159/how-to-upgrade-the-svn-version-used-by-git-svn (use macports) – adaam Apr 20 '13 at 02:32
  • 1
    MacPorts is not the answer, but the link helped. I'll post my answer below. Recommending MacPorts to solve a Homebrew problem is like recommending yum/rpm to solve a problem with apt. MacPorts has overhead that I would like to avoid. – datguy Apr 20 '13 at 14:30

3 Answers3

4

Thanks to this answer, I found a reasonable solution. I ran sudo cpan SVN::Core, which updated the svn version of git-svn:

$ git svn --version
git-svn version 1.8.2.1 (svn 1.7.3)

The native svn version was unchanged. So I'm left with two different versions of svn, but at least they are the same major version.

Community
  • 1
  • 1
datguy
  • 623
  • 8
  • 24
1

If using homebrew, uninstall git, update/install svn with homebrew, then reinstall git with:

brew install git --with-brewed-svn
James Foucar
  • 91
  • 1
  • 2
0

Another way to point the svn-perl binding to a specific svn installation on your system would be to add following line to the bash profile:

export PERL5LIB=/usr/local/lib/svn-perl

The path will vary depending on the installation directory of svn-perl bindings. For e.g., WanDisco svn client installation is usually under /opt/subversion/lib/svn-perl.

I learned about this trick from here.

user954311
  • 41
  • 3