git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] git-svn: don't escape tilde ('~') for http(s) URLs

From
Junio C Hamano <gitster@pobox.com>
Date
Oct 22, 2008, 06:24 UTC
Message-ID
<7vskqpuoyb.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<20081022061325.GC8225@glandium.org>
Mike Hommey <mh@glandium.org> writes:
Show 14 quoted lines
> On Tue, Oct 21, 2008 at 02:53:28PM -0700, Junio C Hamano wrote:
>
>> >> For svn we have:
>> >> write(5, "<S:update-report send-all=\"true\" xmlns:S=\"svn:\">
>> >> <S:src-path>https://sucs.org/~welshbyte/svn/backuptool/trunk</S:src-path>...
>> >>
>> >> While git-svn shows:
>> >> write(7, "<S:update-report send-all=\"true\" xmlns:S=\"svn:\">
>> >> <S:src-path>https://sucs.org/%7Ewelshbyte/svn/backuptool/trunk</S:src-path>...
>> 
>> This looks like an XML based request sequence to me (and svn is talking
>> WebDAV here, right?);
>
> XML based would be &126;, not %7E.
Read what you quoted again and realize you are agreeing with me ;-).

The former (with "~") is what svn expects, the latter (with %7E) is what git-svn incorrectly threw at the server causing problems. I am wondering the whole %xx escaping thing, which does not seem to match what svn seems to expect.

> Anyways, aren't there ready-to-use url quoting functions in perl ?

My question is not about correct "url quoting", but if using "url quoting" is correct in this context.

Previous: Mike HommeyNext: Eric Wong
Message 6 of 9 in “git-svn url-encodes ~ when it should not”
  1. Björn SteinbrinkOct 18, 2008
  2. Björn SteinbrinkOct 18, 2008
  3. git-svn: don't escape tilde ('~') for http(s) URLsEric Wong, Oct 21, 2008
  4. Junio C HamanoOct 21, 2008
  5. Mike HommeyOct 22, 2008
  6. Junio C HamanoOct 22, 2008
  7. Eric WongOct 22, 2008
  8. Junio C HamanoOct 22, 2008
  9. Eric WongOct 24, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.