Skip to contentSkip to conversation

Major git-svn fail

DISCUSSION Rafael Kitover 2 participants 2 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

Hello,

I'm trying to convert an SVK repo to git using the steps described here:
http://blog.woobling.org/2009/06/git-svn-abandon.html

I'm using the latest devel git from git as the svk reparenting stuff seems to have gotten merged already.

When I used the old code from samv's github
(http://github.com/samv/git/tree/svn-merge-attrs) it ran through the clone all the way, but I had a core file in the directory, so I don't really trust the results.

This is the command I'm using and the results:
git svn clone --authors-file=sl-authors.txt --branches='http://dev.catalyst.perl.org/repos/bast/branches/DBIx-Class-Schema-Loader/' --tags='http://dev.catalyst.perl.org/repos/bast/DBIx-Class-Schema-Loader/tags/' --trunk='http://dev.catalyst.perl.org/repos/bast/trunk/DBIx-Class-Schema-Loader' 'http://dev.catalyst.perl.org/repos/bast/trunk/DBIx-Class-Schema-Loader' sl
Initialized empty Git repository in /home/rkitover/src/git-conversion/sl/.git/
Using higher level of URL:
http://dev.catalyst.perl.org/repos/bast/trunk/DBIx-Class-Schema-Loader
=> http://dev.catalyst.perl.org/repos/bast
perl:
/tmp/buildd/subversion-1.6.9dfsg/subversion/libsvn_subr/path.c:115:
svn_path_join: Assertion `svn_path_is_canonical(component, pool)'
failed.
error: git-svn died of signal 6

The authors file I'm using is:
http://cachemiss.com/files/sl-authors.txt

These svn URLs are for a public repo, so hopefully you can reproduce my results.

Any help much appreciated.

#1 lore raw

Hi,

Quoted 18 lines · Rafael Kitover

This is the command I'm using and the results:
git svn clone --authors-file=sl-authors.txt --branches='http://dev.catalyst.perl.org/repos/bast/branches/DBIx-Class-Schema-Loader/' --tags='http://dev.catalyst.perl.org/repos/bast/DBIx-Class-Schema-Loader/tags/' --trunk='http://dev.catalyst.perl.org/repos/bast/trunk/DBIx-Class-Schema-Loader' 'http://dev.catalyst.perl.org/repos/bast/trunk/DBIx-Class-Schema-Loader' sl
Initialized empty Git repository in /home/rkitover/src/git-conversion/sl/.git/
Using higher level of URL:
http://dev.catalyst.perl.org/repos/bast/trunk/DBIx-Class-Schema-Loader
=> http://dev.catalyst.perl.org/repos/bast
perl:
/tmp/buildd/subversion-1.6.9dfsg/subversion/libsvn_subr/path.c:115:
svn_path_join: Assertion `svn_path_is_canonical(component, pool)'
failed.
error: git-svn died of signal 6

Quoted 2 lines

The authors file I'm using is:
http://cachemiss.com/files/sl-authors.txt

I ran this:

  $ git svn --version
  git-svn version 1.6.6.1.436.gaba7d (svn 1.6.6)
  $ git svn clone --authors-file=sl-authors.txt \
  --branches=http://dev.catalyst.perl.org/repos/bast/branches/DBIx-Class-Schema-Loader/
\
  --tags=http://dev.catalyst.perl.org/repos/bast/tags/ \
  --trunk=http://dev.catalyst.perl.org/repos/bast/trunk/ \
  http://dev.catalyst.perl.org/repos/bast/

This is what I got:

Initialized empty Git repository in /home/Owner/tmp/foo/bast/.git/ Using higher level of URL:
http://dev.catalyst.perl.org/repos/bast/trunk =>
http://dev.catalyst.perl.org/repos/bast
r1 = f48f2e41631e82bec48ad96ec206faf0b5893226 (refs/remotes/trunk)
....

Looks ok.

Signature · 2 lines
Cheers,
Ray Chuan