-
Notifications
You must be signed in to change notification settings - Fork 443
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Importing local repository #68
Comments
That works just fine, but you have to write "file://" first: |
"Couldn't open a repository: Unable to open an ra_local session to URL: Unable to open repository 'file:///path/to/local/rep' git-svn line 2327 |
I had the same issue and I solved it by running svnserve temporarily:
Then it is possible to use:
And finally we kill the svnserve process:
|
|
It may just be whatever version of git-svn you have installed. svn2git ultimately is just a wrapper to git-svn, which is itself an evolving piece of software. |
About the error stating "Couldn't open a repository: Unable to open an ra_local session to URL: Unable to open repository 'file:///path/to/local/rep' git-svn line 2327" mentioned by Downchuck: My understanding is that it ultimately depends on the version of the svnadmin tool that was used to create the local svn repo. I read somewhere on the internet that it would work if the svn repo was created from an old svn repo version. I tried myself this technique using a local svn repo created with "svnadmin create --pre-1.4-compatible" and it still didn't work. (note that I was using svn v1.7.x though, so that may explain it) The most compatible solution is using svnserve as previously indicated. At the end of the day, "git svn fetch" analyses svn merges very slowly so it makes little difference to use a local svn repo or a local svn server. |
Is it possible to use svn2git on a local repo? When I try
svn2git /path/to/local/repo
on a standard layout repository, the output isThe text was updated successfully, but these errors were encountered: