I'm trying to git-svn to work on a private shadowcat svn server.
git svn clone -s http://dev.catalystframework.org/repos/Catalyst/Catalyst-Plugin-ConfigLoader/
Initialized empty Git repository in /home/ecarroll/code/perl/foo/Catalyst-Plugin-ConfigLoader/.git/
Using higher level of URL: http://dev.catalystframework.org/repos/Catalyst/Catalyst-Plugin-ConfigLoader => http://dev.catalystframework.org/repos/Catalyst
What doesn't that work? It looks like http://dev.catalystframework.org/repos/Catalyst/Catalyst-Plugin-ConfigLoader/ has the standard layout.
Is there a sane simple way to get git to pull from an svn repo?
I'm a little late in answering now that the Catalyst-Plugin-ConfigLoader project has migrated to Git, but I'll answer in case someone runs into a similar problem with a different svn project.
git svn tries to be helpful by searching for the root of the svn repository and using that instead of the URL you give it. I find it annoying, but fortunately there's a workaround: use the --no-minimize-url option.
From the git svn documentation (git help svn):
--no-minimize-urlWhen tracking multiple directories (using
--stdlayout,--branches, or--tagsoptions),git svnwill attempt to connect to the root (or highest allowed level) of the Subversion repository. This default allows better tracking of history if entire projects are moved within a repository, but may cause issues on repositories where read access restrictions are in place. Passing--no-minimize-urlwill allowgit svnto accept URLs as-is without attempting to connect to a higher level directory. This option is off by default when only one URL/branch is tracked (it would do little good).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With