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

Re: BUG: git-p4: can't add files with special chars

From
PWPete Wyckoff <pw@padd.com>
Date
Dec 17, 2011, 13:27 UTC
Message-ID
<20111217132754.GB31271@padd.com>
In-Reply-To
<4EE6688A.2030105@diamand.org>
luke@diamand.org wrote on Mon, 12 Dec 2011 20:48 +0000:
Show 10 quoted lines
> I just noticed this today. You can't add a file from git to perforce
> that contains a p4 special character (@,#,% or *).
> 
> There is code to cope going the other way round (p4 file with
> special character in it) but if you create a file in git and then
> try to git-p4 submit, it fails.
> 
> I've just tried a quick and simple fix, and it turns out that it's
> not that easy as the special characters get expanded to %40, %2A and
> so-on. The % seems to get further expanded by python...

Entertaining. Probably p4_add() and friends should stop using system. And add option "-f" when wildcards are detected. I wouldn't be surprised if this turned into a larger set of issues.

		-- Pete
Previous: Luke Diamand
Message 2 of 2 in “BUG: git-p4: can't add files with special chars”
  1. Luke DiamandDec 12, 2011
  2. Pete WyckoffDec 17, 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.