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

Re: cg-init bug -- identified

From
TMTommy M. McGuire <mcguire@crsr.net>
Date
Jun 5, 2005, 18:43 UTC
Message-ID
<20050605184341.GA21345@immutable.crsr.net>
In-Reply-To
<20050605182912.GC6890@tumblerings.org>
On Sun, Jun 05, 2005 at 11:29:12AM -0700, Zack Brown wrote:
> It turned out one of my files had a "'" in the name, i.e.:
Now this is a neat one.
[mcguire@immobile cgtest]$ sh -x cg-init
[... Normal behavior ...]
+ touch .git/refs/heads/master
+ '[' '' ']'
+ git-read-tree
+ find bar baz foo 'foo'\''prime' '(' -type f -o -type l ')' -print0
+ xargs -0r cg-add
Adding file bar
Adding file baz/1
Adding file baz/0
Adding file foo
Adding file foo'prime
xargs: unmatched single quote
+ cg-commit -C '-mInitial commit' -E

The error is the second-to-last line. It partially succeeded originally because xargs broke off and handled parts of the input before reaching the single quote.

[By the way, hello! I've just recently started climbing the git learning curve, and it's nice to see something I recognize. :-)]

-- 
Tommy McGuire
Previous: Zack BrownNext: Tommy M. McGuire
Message 9 of 15 in “cg-init bug”
  1. Zack BrownJun 5, 2005
  2. Radoslaw SzkodzinskiJun 5, 2005
  3. Zack BrownJun 5, 2005
  4. Radoslaw SzkodzinskiJun 5, 2005
  5. Petr BaudisJun 5, 2005
  6. Zack BrownJun 5, 2005
  7. Petr BaudisJun 5, 2005
  8. Zack BrownJun 5, 2005
  9. Tommy M. McGuireJun 5, 2005
  10. Tommy M. McGuireJun 5, 2005
  11. Re: cg-init bug -- identifiedTommy M. McGuire, Jun 5, 2005
  12. Make cg-add use xargs -0Dan Holmsand, Jun 5, 2005
  13. Petr BaudisJun 5, 2005
  14. Zack BrownJun 5, 2005
  15. Junio C HamanoJun 5, 2005

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.