Search code examples
svngitgit-svn

How can I use "git-svn" to checkout a local svn repository?


I'm practicing how to use svn and git.

I created a svn repository on my computer, at "/Users/name/svnRepo/test". I am able to use the svn commands to work on this repository.

Then, I tried to use command "git-svn clone FILE:///Users/name/svnRepo/test/ .", and got an error:

Initialized empty Git repository in ... Bad URL passed to RA layer: Unable to open an ra_local session to URL: Local URL 'FILE:///Users/name/svnRepo/test' does not contain 'file://' prefix at /usr/local/git/libexec/git-core/git-svn line 1775

Could anyone help?


Solution

  • Scheme part of URL is case-sensitive. Try to use "git-svn clone file:///Users/name/svnRepo/test/ ." command.