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

Re: 'git status -z' missing separators on OSX

From
Jeff King <peff@peff.net>
Date
Jun 17, 2015, 03:32 UTC
Message-ID
<20150617033211.GA24673@peff.net>
In-Reply-To
<5580AF94.6090801@platymuus.com>
On Tue, Jun 16, 2015 at 06:21:56PM -0500, Tad Hardesty wrote:
> ~/test (master #)$ git status -z | hexdump -C
> 00000000  41 20 20 61 41 20 20 62                           |A  aA  b|
> 00000008

That's really weird. I don't have a Yosemite box available, but I can't reproduce on the Mavericks box I have access to. Still, I'd suspect something weird in your config (e.g., something that is inserting itself on the output pipe of "git status").

You said you blanked your config, but can you do "git config --list" to double-check? Also, try running with GIT_TRACE=1, which would show if git is starting a pager between your processes which might be eating the NUL.

Can you also double-check that you have no aliases for "git" (try "type git"). We have sometimes seen weird behavior when people have aliased "git" to "hub".

Is it only "git status" that is affected? Does "git log --oneline -1 -z" end in a NUL (it should)?

-Peff
Previous: Tad HardestyNext: Eric Sunshine
Message 2 of 3 in “'git status -z' missing separators on OSX”
  1. Tad HardestyJun 16, 2015
  2. Jeff KingJun 17, 2015
  3. Eric SunshineJun 17, 2015

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.