# git svn: Bad URL passed to RA layer: Unrecognized URL scheme

4 messages from 2008-10-05 to 2008-10-06. Participants: Jeff Kowalczyk, Mikael Magnusson, Thomas Rast.
Thread: https://gitlist.dev/t/15791

## Jeff Kowalczyk, 2008-10-05 17:24

Subject: git svn: Bad URL passed to RA layer: Unrecognized URL scheme
Message-ID: <pan.2008.10.05.17.24.02.167465@yahoo.com>
URL: https://gitlist.dev/e/pan.2008.10.05.17.24.02.167465%40yahoo.com

```
I made an ill-advised upgrade to from subversion-1.4.6 to
subversion-1.5.2. While I had subversion-1.5.2 installed, git svn rebase
ended with a 'segmentation fault' error. 

Now back at subversion-1.4.6, git repositories with svn remotes updated
during the aforentioned upgrade now give an error:

(master) $ git svn fetch
Bad URL passed to RA layer: Unrecognized URL scheme for 'http://code.djangoproject.com/svn' at /usr/libexec/git-core/git-svn line 1400

(master) $ git svn rebase
Bad URL passed to RA layer: Unrecognized URL scheme for 'http://code.djangoproject.com/svn' at /usr/libexec/git-core/git-svn line 1909

Others which were not updated recently work fine for git svn operations.

How can I repair the affected git repositories?

Thanks.

```

## Mikael Magnusson, 2008-10-05 19:44

Subject: Re: git svn: Bad URL passed to RA layer: Unrecognized URL scheme
Message-ID: <237967ef0810051244m51156925x26ae51db038dad49@mail.gmail.com>
URL: https://gitlist.dev/e/237967ef0810051244m51156925x26ae51db038dad49%40mail.gmail.com
In-Reply-To: <pan.2008.10.05.17.24.02.167465@yahoo.com>

```
2008/10/5 Jeff Kowalczyk <jtk@yahoo.com>:
> I made an ill-advised upgrade to from subversion-1.4.6 to
> subversion-1.5.2. While I had subversion-1.5.2 installed, git svn rebase
> ended with a 'segmentation fault' error.
>
> Now back at subversion-1.4.6, git repositories with svn remotes updated
> during the aforentioned upgrade now give an error:
>
> (master) $ git svn fetch
> Bad URL passed to RA layer: Unrecognized URL scheme for 'http://code.djangoproject.com/svn' at /usr/libexec/git-core/git-svn line 1400
>
> (master) $ git svn rebase
> Bad URL passed to RA layer: Unrecognized URL scheme for 'http://code.djangoproject.com/svn' at /usr/libexec/git-core/git-svn line 1909
>
> Others which were not updated recently work fine for git svn operations.
>
> How can I repair the affected git repositories?
>
> Thanks.

That somehow looks more like an svn error than a git error, does
svn checkout http://code.djangoproject.com/svn
work?

-- 
Mikael Magnusson

```

## Jeff Kowalczyk, 2008-10-06 02:28

Subject: Re: git svn: Bad URL passed to RA layer: Unrecognized URL scheme
Message-ID: <pan.2008.10.06.02.28.35.643705@yahoo.com>
URL: https://gitlist.dev/e/pan.2008.10.06.02.28.35.643705%40yahoo.com
In-Reply-To: <237967ef0810051244m51156925x26ae51db038dad49@mail.gmail.com>

```
Mikael Magnusson wrote:
> That somehow looks more like an svn error than a git error, does
> svn checkout http://code.djangoproject.com/svn work?

You were correct, I tried subversion and got the same error. I rebuilt
(gentoo ~x86) neon-0.28.3, subversion-1.5.2 and git-1.6.0.2, and have
functional git svn operations.

However, each operation ends with a segmentation fault. This is the case
with all git svn repositories (e.g. several different svn remote hosts).

  (master) $ git svn rebase
     M  django/core/management/commands/makemessages.py
     M  docs/topics/i18n.txt
  r9155 = 4c86e60f62366ac9c3fd9369c17c54801a8f2ea0 (trunk)
  First, rewinding head to replay your work on top of it...
  Fast-forwarded master to refs/remotes/trunk.
  Segmentation fault

Does the segfault risk corruption of the git repository data?

Would I report this as a git bug or distribution bug?

Thanks.

```

## Thomas Rast, 2008-10-06 09:47

Subject: Re: git svn: Bad URL passed to RA layer: Unrecognized URL scheme
Message-ID: <200810061147.28986.trast@student.ethz.ch>
URL: https://gitlist.dev/e/200810061147.28986.trast%40student.ethz.ch
In-Reply-To: <pan.2008.10.06.02.28.35.643705@yahoo.com>

```
Jeff Kowalczyk wrote:
> However, each operation ends with a segmentation fault. This is the case
> with all git svn repositories (e.g. several different svn remote hosts).
> 
>   (master) $ git svn rebase
>      M  django/core/management/commands/makemessages.py
>      M  docs/topics/i18n.txt
>   r9155 = 4c86e60f62366ac9c3fd9369c17c54801a8f2ea0 (trunk)
>   First, rewinding head to replay your work on top of it...
>   Fast-forwarded master to refs/remotes/trunk.
>   Segmentation fault

Can you try to find out what exactly segfaults here? git-svn is
implemented in Perl, so that means it's either Perl itself (unlikely),
the SVN libraries hooked into Perl, or some git command run by
git-svn.

- Thomas

-- 
Thomas Rast
trast@{inf,student}.ethz.ch


```
