Question

I am trying to import code from a semi-public Subversion repository into my own Git repo. The Subversion repo access is explained here (enable JavaScript to read; look under the "[Download]" link).

I have tried to use git svn clone manually as well as via the svn2git utility. Either way, I keep running into the same error as shown below.

I can verify that I have access to the Subversion repo: svn co svn+ssh://harmony@eniac.seas.upenn.edu/trunk works.

Help!

$ svn2git svn+ssh://harmony@eniac.seas.upenn.edu -v
Running command: git svn init --prefix=svn/ --no-metadata --trunk=trunk --tags=tags --branches=branches svn+ssh://harmony@eniac.seas.upenn.edu
Running command: git svn fetch
Read access denied for root of edit: Not authorized to open root of edit operation at /usr/local/Cellar/git/1.8.5.3/lib/perl5/site_perl/Git/SVN/Ra.pm line 290

command failed:
2>&1 git svn fetch
Was it helpful?

Solution

To make the clone or svn2git process work I am pretty sure you are stuck with one of the two solutions of:

In svnserve.conf setting:

anon-access = read To: anon-access = none

Or if it is served via Apache using the Apache SVN module in the Authz file linked in the comment making the change:

[/]
* = 

To:

[/]
* = r

All of that said:

Given that the above is a non-solution to your problem if you are unable to have the server configured properly to allow you to do this you could see if you have any better luck with the svnsync command:

You could then use your local SVN to create your git repo. Assuming your intent is to be able to push changes back to the original SVN source, I think this will not require the needed configuration discussed above for the initial clone, and you would be able to get it working from this point... This entire recommendation is based on a chain of "maybes", so hopefully someone else has a better solution if you really need to do this and cannot have the configuration of the server altered.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top