Matt D
Matt D

Reputation: 1506

How can I upgrade the SVN version used by git svn in Windows?

My company is in the process of upgrading SVN to 1.7. Checking git svn --version shows that the SVN version being used is 1.4.6. I'd like to get the version of SVN that git svn uses up closer to 1.7. However, I've seen no instructions for updating the version of SVN that git svn uses (in Windows).

The other thread I found looking for answers seems to be oriented to a Mac OSX user. I haven't seen Windows instructions for this upgrade, however. Does anyone know how to properly update the SVN version for git svn in Windows?

Upvotes: 4

Views: 1211

Answers (3)

opticyclic
opticyclic

Reputation: 8116

I noticed that the version of git that I installed from GitHub (http://windows.github.com/) had svn 1.7 but mSysGit 1.8.1.2 still had svn 1.4.

On further inspection I noticed that GitHub for Windows doesn't ship with svn! It turns out that it was picking up my command line version of svn that I had installed in Windows separately.

Deleting all the svn* files from the mSysGit/bin directory had the same effect. It will pick up whatever version of svn you have installed in Windows (assuming that it is on the PATH).

Upvotes: 0

VonC
VonC

Reputation: 1324577

Starting with git1.7.8 (October 2012), git svn will officially work with SVN1.7

See "[ANNOUNCE] Git v1.8.0-rc3":

"git svn" has been updated to work with SVN 1.7.

Upvotes: 0

me_and
me_and

Reputation: 15634

I'm assuming you're using mSysGit on Windows, since I'm using a recent install and git svn --version is also listing v1.4.6 for me.

The reason you've seen no instructions is that you're using the latest version of mSysGit. You can't upgrade if there's nothing to upgrade to! You've a few options:

  • Don't bother. Everything will just work as it always has, since a Subversion 1.7 server will happily work with an older client. Continuing to use your version of git svn will cause no more issues than it does at present, if it causes any at all.

  • Use Cygwin. The Subversion version that git svn on Cygwin uses is 1.7.4.

  • Wait for a new version to come out. Given mSysGit is still at Subversion 1.4.6, I wouldn't hold much hope for this happening any time soon.

Upvotes: 4

Related Questions