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

5 messages from 2013-08-26 to 2013-08-26. Participants: Bruce Korb, Jonathan Nieder.
Thread: https://gitlist.dev/t/34770

## Bruce Korb, 2013-08-26 17:16

Subject: git-svn - canonicalize: Assertion `*src != '/'' failed.
Message-ID: <521B8D61.8040608@gmail.com>
URL: https://gitlist.dev/e/521B8D61.8040608%40gmail.com

```
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, 2013-08-26 17:28

Subject: Re: git-svn - canonicalize: Assertion `*src != '/'' failed.
Message-ID: <20130826172853.GR4110@google.com>
URL: https://gitlist.dev/e/20130826172853.GR4110%40google.com
In-Reply-To: <521B8D61.8040608@gmail.com>

```
Hi,

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,
Jonathan

```

## Bruce Korb, 2013-08-26 17:32

Subject: Re: git-svn - canonicalize: Assertion `*src != '/'' failed.
Message-ID: <CAKRnqNK4ZftcejAHjCcnFukr=Dm_U109uFmXEmXT+VpeW4DCBA@mail.gmail.com>
URL: https://gitlist.dev/e/CAKRnqNK4ZftcejAHjCcnFukr%3DDm_U109uFmXEmXT%2BVpeW4DCBA%40mail.gmail.com
In-Reply-To: <20130826172853.GR4110@google.com>

```
Hi,

On Mon, Aug 26, 2013 at 10:28 AM, Jonathan Nieder <jrnieder@gmail.com> wrote:
> 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, 2013-08-26 17:42

Subject: Re: git-svn - canonicalize: Assertion `*src != '/'' failed.
Message-ID: <20130826174242.GT4110@google.com>
URL: https://gitlist.dev/e/20130826174242.GT4110%40google.com
In-Reply-To: <CAKRnqNK4ZftcejAHjCcnFukr=Dm_U109uFmXEmXT+VpeW4DCBA@mail.gmail.com>

```
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, 2013-08-26 17:52

Subject: Re: git-svn - canonicalize: Assertion `*src != '/'' failed.
Message-ID: <CAKRnqNLupBKdvkK-LCuO8a+cz00oJbCcjKDEV8FepV9xSOAJEw@mail.gmail.com>
URL: https://gitlist.dev/e/CAKRnqNLupBKdvkK-LCuO8a%2Bcz00oJbCcjKDEV8FepV9xSOAJEw%40mail.gmail.com
In-Reply-To: <20130826174242.GT4110@google.com>

```
On Mon, Aug 26, 2013 at 10:42 AM, Jonathan Nieder <jrnieder@gmail.com> wrote:
> 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:

> $ 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.)

```
