3

Trying to convert my local SVN repo to Git using svn2git as suggested by github.

I ran this code: svn2git http://localhost/repo-name

And I got this error:

RA layer request failed: OPTIONS of 'http://localhost/repo-name': 200 OK (http://localhost) at /usr/bin/git-svn line 1923

[svn-remote "svn"] unknown

Google and a fairly thorough search in SO yielded no results.

Can anyone shed some light here?

1
  • But why you don't file:// protocol? Isn't the repository local? An intermediate layer would slow down the translation. Commented Jun 22, 2012 at 10:59

1 Answer 1

1

If the repository is local and has trunk/branches/tags layout, you may use SubGit:

$ subgit install path/to/svn/repository

The resulting repository will be at path/to/svn/repository/.git It has another translation engine than svn2git (svn2git uses "git-svn" in it), so it shouldn't have this problem.

If your repository has no trunk/branches/tags layout, you may use SmartGit for conversion that also uses another translation engine, not git-svn.

Sign up to request clarification or add additional context in comments.

1 Comment

I see. I'll test these out tomorrow when I get more time. Thanks for the feedback.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.