pear / pear-svn-git

tool to move pear svn repositories to git
5 stars 8 forks source link

Failure to rebase Net_HL7 #13

Closed CloCkWeRX closed 12 years ago

CloCkWeRX commented 12 years ago

$ ./1-from-svn.sh Net_HL7 Initialized empty Git repository in /home/clockwerx/pear-svn-git/Net_HL7/.git/ Using higher level of URL: http://svn.php.net/repository/pear/packages/Net_HL7 => http://svn.php.net/repository fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree. Use '--' to separate paths from revisions log --no-color --no-decorate --first-parent --pretty=medium HEAD: command returned error: 128

ERROR: could not rebase Net_HL7.

convissor commented 12 years ago

I'm getting the same error message. I recall seeing similar things when I tried to create a test package in svn. I believe it has to do with the item not being created "properly" in the svn repo. It seems you'll have to hack around with git svn clone manually.

CloCkWeRX commented 12 years ago

Yeah; unfortunately there's a few of these out there too :(

On the unmaintained packages list; I need to work through a bunch and add them to git; or manually migrate. It'd be neat if this tool could detect when the 'first revision' check fails, and just do a normal 'git clone', taking longer but still getting the job done.

convissor commented 12 years ago

But the first revision check works. Something else is askew. Calling "git clone" without the -s option works. Calling "svn co" produces an error:

svn: warning: Error handling externals definition for 'Net_HL7/Net':
svn: warning: URL 'https://care2002.svn.sourceforge.net/svnroot/care2002/trunk/2.6/classes/php_hl7/Net' at revision 7260 doesn't exist
Checked out revision 320520.
convissor commented 12 years ago

Can you please fix the externals property and try again. I'm curious if that will fix it.

CloCkWeRX commented 12 years ago

Didn't :(

I manually migrated this in the end.