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

git-svn url-encodes ~ when it should not

From
Björn Steinbrink <b.steinbrink@gmx.de>
Date
Oct 18, 2008, 21:39 UTC
Message-ID
<20081018213919.GC3107@atjola.homenet>
Hi,

Jose Carlos Garcia Sogo reported on #git that a git-svn clone of this svn repo fails for him: https://sucs.org/~welshbyte/svn/backuptool/trunk

I can reproduce that here with: git-svn version 1.6.0.2.541.g46dc1.dirty (svn 1.5.1)

The error message I get is: Apache got a malformed URI: Unusable URI: it does not refer to this repository at /usr/local/libexec/git-core/git-svn line 4057

strace revealed that git-svn url-encodes ~ while svn does not do that.

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

Björn
Next: Björn Steinbrink
Message 1 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.