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

Re: [BUG?] applypatch-msg hook no-longer thinks stdin is a tty

From
Junio C Hamano <gitster@pobox.com>
Date
Oct 2, 2015, 16:03 UTC
Message-ID
<xmqqvbap5kbr.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<CAFOYHZArBv=2E_YonCqOSC4mWk9=xkbG9FyB+zNFFAqmUBUKHA@mail.gmail.com>
Chris Packham <judge.packham@gmail.com> writes:
> As of git 2.6 this has stopped working and stdin always fails the tty
> check.

We now run that hook thru run_hook_ve(), which closes the standard input (as the hook is not reading anything). Perhaps you can check if your output is connected to the tty instead?

Previous: Chris PackhamNext: Junio C Hamano
Message 2 of 5 in “[BUG?] applypatch-msg hook no-longer thinks stdin is a tty”
  1. Chris PackhamOct 1, 2015
  2. Junio C HamanoOct 2, 2015
  3. Junio C HamanoOct 2, 2015
  4. Chris PackhamOct 3, 2015
  5. Johannes SixtOct 3, 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.