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

℡╲_俬逩灬. 提交于 2019-12-04 10:19:48

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.

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.

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).

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!