threads / discuss / 34770

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

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

## tl;dr

5 messages between Aug 26, 2013 and Aug 26, 2013.

replies: 4people: 2as markdown or json

Bruce Korb· Aug 26, 2013, 17:16 UTC · lore
I was trying to clone a SVN repo, but not having luck:
 > $ 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!
Jonathan Nieder· Aug 26, 2013, 17:28 UTC · re: Bruce Korb · lore

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

Hi,
Bruce Korb wrote:
Show 7 quoted lines
> I was trying to clone a SVN repo, but not having luck:
>
>> $ 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

Bruce Korb· Aug 26, 2013, 17:32 UTC · re: Jonathan Nieder · lore

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

Hi,
On Mon, Aug 26, 2013 at 10:28 AM, Jonathan Nieder <jrnieder@gmail.com> wrote:
Show 13 quoted lines
> Bruce Korb wrote:
>> I was trying to clone a SVN repo, but not having luck:
>>
>>> $ 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,

$ 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
Jonathan Nieder· Aug 26, 2013, 17:42 UTC · re: Bruce Korb · lore

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

Bruce Korb wrote:
> $ 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

Bruce Korb· Aug 26, 2013, 17:52 UTC · re: Jonathan Nieder · lore

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

On Mon, Aug 26, 2013 at 10:42 AM, Jonathan Nieder <jrnieder@gmail.com> wrote:
Show 17 quoted lines
> Bruce Korb wrote:
>
>> $ 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
I get different results:
Show 5 quoted 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.)

← back to recent threads