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

Re: [PATCH] Test failure when spaces in git root

From
Thomas Rast <trast@student.ethz.ch>
Date
Mar 24, 2011, 20:46 UTC
Message-ID
<201103242146.02728.trast@student.ethz.ch>
In-Reply-To
<1300925506-20378-1-git-send-email-cmskog@gmail.com>
Carl Michael Skog wrote:
> Some of the svn related tests would break when the git root path had
> spaces in it.
[...]
> -quoted_svnrepo="$(echo $svnrepo | sed 's/ /%20/')"
> +quoted_svnrepo="$(echo $svnrepo | sed 's/ /%20/g')"
If you're already fixing this, shouldn't it be
  $(echo "$svnrepo" | ...)

to stop the expansion process from converting arbitrary series of whitespace into a single space?

However, any other (than space) character that needs %-quoting would probably also break the test. Maybe some more complicated mangling would be in order.

-- 
Thomas Rast
trast@{inf,student}.ethz.ch
Previous: Carl Michael Skog
Message 2 of 2 in “Test failure when spaces in git root”
  1. Test failure when spaces in git rootCarl Michael Skog, Mar 24, 2011
  2. Thomas RastMar 24, 2011

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.