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

Re: [PATCH] translate bad characters in refnames during git-svn fetch

From
David Kastrup <dak@gnu.org>
Date
Jul 28, 2007, 07:33 UTC
Message-ID
<85lkd13rts.fsf@lola.goethe.zz>
In-Reply-To
<loom.20070728T091909-416@post.gmane.org>
Mike Hommey <mh@glandium.org> writes:
Show 13 quoted lines
> Eric Wong <normalperson <at> yhbt.net> writes:
>> 
>>   Somebody naming directories on the SVN side with the path component
>>   ":refs/remotes" in them could screw things up for us.
>
> Why not "simply" allow some form of escaping in refs, such that special
> characters CAN be used anywhere. Then git-svn would just have to escape these
> characters.
>
> Something like:
> git update-ref "refs/remotes/tags/sometag\~1" $sha1
>
> I'm pretty sure that could help fix a lot of other similar issues.

Well, having had to do my fair level of porting shell-scripts and installation stuff and so on to Windows/MacOSX whatsoever where spaces (and other characters) in file names are considered business as usual: it is a bottomless pit. You'll always find one more place in your software that does not get this right.

It may be a more confined problem to make the interoperation utility responsible for quoting/renaming.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum
Previous: Mike Hommey
Message 10 of 10 in “translate bad characters in refnames during git-svn fetch”
  1. translate bad characters in refnames during git-svn fetchmartin f krafft, Jul 15, 2007
  2. Eric WongJul 16, 2007
  3. Jan HudecJul 16, 2007
  4. martin f krafftJul 16, 2007
  5. Eric WongJul 17, 2007
  6. martin f krafftJul 17, 2007
  7. Robert EwaldJul 26, 2007
  8. Martin F KrafftJul 26, 2007
  9. Mike HommeyJul 28, 2007
  10. David KastrupJul 28, 2007

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.