git-svn-clone-externals icon indicating copy to clipboard operation
git-svn-clone-externals copied to clipboard

Error getting externals with git-svn-clone-external

Open ghost opened this issue 15 years ago • 7 comments
trafficstars

The script seems to be parsing malformed URLs when I try on our repository.

$ ./git-svn-clone-externals lib/vendor/http://svn.dwoo.org/trunk/lib -> dwoo git svn clone dwoo lib/vendor/http://svn.dwoo.org/trunk/lib Initialized empty Git repository in /home/drak/www/trunk/.git_externals/lib/vendor/http:/svn.dwoo.org/trunk/lib/.git/ Bad URL passed to RA layer: Illegal repository URL 'dwoo' at /usr/lib/git-core/git-svn line 1544

lib/vendor/http://svn.phpdoctrine.org/tags/1.2.1/lib -> Doctrine git svn clone Doctrine lib/vendor/http://svn.phpdoctrine.org/tags/1.2.1/lib Initialized empty Git repository in /home/drak/www/trunk/.git_externals/lib/vendor/http:/svn.phpdoctrine.org/tags/1.2.1/lib/.git/ Bad URL passed to RA layer: Illegal repository URL 'Doctrine' at /usr/lib/git-core/git-svn line 1544

ghost avatar Jan 28 '10 06:01 ghost

After a little debugging is seems that the following code is producing results that result in invalid params:

git svn show-externals|grep -vE '#|^$' /lib/vendor/http://svn.dwoo.org/trunk/lib dwoo /lib/vendor/http://svn.phpdoctrine.org/tags/1.2.1/lib Doctrine /locale/

ghost avatar Jan 28 '10 10:01 ghost

This is a bug with git-svn show-externals when parsing an svn:externals property which has the URL first, followed by the external link name. Eg:

https://blah.com/svn/myexternal/url/ ext

This could possibly be handled by the clone externals script but would be more appropriate to submit a patch to git. I'm planning on doing this when I figure out where git's git repository is kept and I can develop a fix :)

alexspurling avatar Nov 24 '10 10:11 alexspurling

I've run into this same error. Is there a fix or workaround for this?

tleish avatar Aug 23 '12 20:08 tleish

Add me to the list of interested parties.

bimargulies avatar Jan 22 '13 20:01 bimargulies

Also running into this with paths like

/Tools/^/../repobin/NUnit/2.6.2@450 NUnit

And interested if anyone has a fix :).

crazy2be avatar Feb 10 '15 20:02 crazy2be

The problem is where the svn:external property is using the new way (post SVN 1.5) of defining externals. It is documented here. You can swap the definition of remote_url and local_directory in the script and it works.

adamscybot avatar Jan 19 '17 16:01 adamscybot