Re: Bad URL passed to RA lay
- From
- Eric Wong <normalperson@yhbt.net>
- Date
- Oct 14, 2009, 07:07 UTC
- Message-ID
- <20091014070724.GA18600@dcvr.yhbt.net>
- In-Reply-To
- <1952825702@web.de>
m.skoric@web.de wrote:
Show 15 quoted lines
> Hi List, > > i have a problem with git-svn clone / fetch. I get following error > while doing one of previous command -> "Bad URL passed to RA lay" This > happens because a branch doesn't exists in svn anymore and git wants > to retrieve data from it. Here is the complete error message > > Initializing parent: Abo-Uebernahme (Bug #994)@341 > Found possible branch point: "quoted"..trunk => "quoted"...Abo-Uebernahme (Bug #994), 203 > Found branch parent: (Abo-Uebernahme (Bug #994)@341) bb831869748c98bf97d105c5894ae65331c95c08 > Bad URL passed to RA layer: Malformed URL for repository at /usr/bin/git-svn line 4311 > > git version 1.6.3.3 > > Aynone else has this Problem?
Hi,
Unlikely, not many people use URIs as weird as yours :) The existing test case (t9118) we have was also inspired by you, on the same branch, even.
> Can anyone help me?
What exactly is the "quoted" you refer to? That's not an actual branch name, is it?
Can you try it with v1.6.5? You might need to edit your $GIT_CONFIG, but commit 5268f9edc3c86b07a64fcc2679e5ffe39be28d97 was the last fix for URI-escaping problems:
Author: Eric Wong <normalperson@yhbt.net> Date: Sun Aug 16 14:22:12 2009 -0700
svn: assume URLs from the command-line are URI-encoded
And then unescape them when writing to $GIT_CONFIG.
SVN has different rules for repository URLs (usually the root)
and for paths within that repository (below the HTTP layer).
Thus, for the request URI path at the HTTP level, the URI needs
to be encoded. However, in the body of the HTTP request (the
with underlying SVN XML protocol), those paths should not be
URI-encoded[1]. For non-HTTP(S) requests, SVN appears to be
more flexible and will except weird characters in the URL as
well as URI-encoded ones.
Since users are used to using URLs being entirely URI-encoded,
git svn will now attempt to unescape the path portion of URLs
while leaving the actual repository URL untouched.
This change will be reflected in newly-created $GIT_CONFIG files
only. This allows users to switch between svn(+ssh)://, file://
and http(s):// urls without changing the fetch/branches/tags
config keys. This won't affect existing imports at all (since
things didn't work before this commit anyways), and will allow
users to force escaping into repository paths that look like
they're escaped (but are not).
Thanks to Mike Smullin for the original bug report and Björn
Steinbrink for summarizing it into testable cases for me.
[1] Except when committing copies/renames, see
commit 29633bb91c7bcff31ff3bb59378709e3e3ef627dAnd if git v1.6.5 doesn't work, would you mind looking at (and possibly modifying) the t9118 test in git to reproduce since it's already got your oddly-named branch in it? Thanks!
-- Eric Wong