Skip to contentSkip to conversation

git-svn - canonicalize: Assertion `*src != '/'' failed.

DISCUSSION Bruce Korb 2 participants 5 messages Jun 15, 2016

lore
Share & tools
lore

Bruce Korb

author
#0 lore raw

I was trying to clone a SVN repo, but not having luck:

Quoted 3 lines
$ git svn clone $PWD/private-lustre-svn $PWD/private-lustre-git
perl: subversion/libsvn_subr/dirent_uri.c:321: canonicalize: Assertion `*src != '/'' failed.
error: git-svn died of signal 6

What is Perl or Subversion or GIT trying to tell me, please? Thank you!

#1 lore raw

Hi,

Quoted 7 lines · Bruce Korb

I was trying to clone a SVN repo, but not having luck:

Quoted 3 lines
$ git svn clone $PWD/private-lustre-svn $PWD/private-lustre-git
perl: subversion/libsvn_subr/dirent_uri.c:321: canonicalize: Assertion `*src != '/'' failed.
error: git-svn died of signal 6

What is Perl or Subversion or GIT trying to tell me, please? Thank you!

What version of git are you using? And what version of libsvn (and the libsvn perl bindings)?

Thanks,
Jonathan

author
#2 lore raw

Hi,

Quoted 7 lines · Jonathan Nieder
Quoted 6 lines · Bruce Korb

I was trying to clone a SVN repo, but not having luck:

Quoted 3 lines
$ git svn clone $PWD/private-lustre-svn $PWD/private-lustre-git
perl: subversion/libsvn_subr/dirent_uri.c:321: canonicalize: Assertion `*src != '/'' failed.
error: git-svn died of signal 6
Quoted 6 lines
Quoted 1 line

What is Perl or Subversion or GIT trying to tell me, please? Thank you!

What version of git are you using? And what version of libsvn (and the libsvn perl bindings)?

Thanks,

$ git --version
git version 1.8.1.4
$ git svn --version
git-svn version 1.8.1.4 (svn 1.7.11)

Thank, _you_! :) -- Bruce

#3 lore raw
Quoted 2 lines · Bruce Korb
$ git svn --version
git-svn version 1.8.1.4 (svn 1.7.11)

Hm. Two ideas:

* Does 1.8.2 or newer work better? (It contains v1.8.2-rc0~110^2, "git-svn: do not escape certain characters in paths", 2013-01-17, which at first glance looks unlikely to help but might be worth a try.)

* Does "git svn clone file://$PWD/private-lustre-svn $PWD/private-lustre-git" work?

Ciao,
Jonathan

author
#4 lore raw
Quoted 12 lines · Jonathan Nieder
Quoted 2 lines · Bruce Korb
$ git svn --version
git-svn version 1.8.1.4 (svn 1.7.11)

Hm. Two ideas:

* Does 1.8.2 or newer work better? (It contains v1.8.2-rc0~110^2, "git-svn: do not escape certain characters in paths", 2013-01-17, which at first glance looks unlikely to help but might be worth a try.)

Quoted 5 lines

* Does "git svn clone file://$PWD/private-lustre-svn $PWD/private-lustre-git" work?

Ciao,
Jonathan

I get different results:

Quoted 5 lines
$ git svn clone file://$PWD/private-lustre-svn $PWD/private-lustre-git
Initialized empty Git repository in /u/bkorb/work/private-lustre-git/.git/
Couldn't open a repository: Unable to connect to a repository at URL 'file:///u/bkorb/work/private-lustre-svn': \
Unable to open an ra_local session to URL: Unable to open repository 'file:///u/bkorb/work/private-lustre-svn' \
at /usr/lib/perl5/vendor_perl/5.16.2/Git/SVN.pm line 148.

That makes it look like I didn't get a proper copy of the SVN repo. Since the real repo lives behind a firewall through two ssh hops, getting what I need may require learning Subversion instead of using conversion and familiar tools.....

(I need to extract patch sets for three development branches so I can apply them to a lustre GIT repo.)