git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: Piotrek <piotrekkr@o2.pl>
To: "René Scharfe" <l.s.r@web.de>
Cc: "Ævar Arnfjörð Bjarmason" <avarab@gmail.com>, git@vger.kernel.org
Subject: Re: Issue with git > 2.36.1 and pre-commit hook on macOS M1
Date: Tue, 13 Dec 2022 22:02:46 +0100	[thread overview]
Message-ID: <c07a5ac4-3da6-6fb4-4586-a83373bc05d4@o2.pl> (raw)
In-Reply-To: <30f80aa4-d5c1-4fce-f1c9-710eabeaa022@web.de>

On 12.12.2022 14:29, René Scharfe wrote:

> While "docker compose" is right in that stdin is not a TTY, it never
> was.  Redirecting the output its seems to help.  So I guess it checks if
> stdout is connected to a terminal and then expects stdin to be a TTY as
> well.  Try appending " | cat" to the command in the pre-commit hook,
> which breaks the connection for stdout.
> 
> René

Just to be sure if I understand this correctly. It is probably a bug in 
docker compose expecting stdin to be a TTY, right? I'll write some bug 
report to them, maybe they will take care of this since it is only on 
MacOS and all works fine with Linux.

Thank you for checking this René.

  reply	other threads:[~2022-12-13 21:05 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-11 21:11 Issue with git > 2.36.1 and pre-commit hook on macOS M1 Piotrek
2022-12-12 13:29 ` René Scharfe
2022-12-13 21:02   ` Piotrek [this message]
2022-12-14 22:23     ` René Scharfe
2022-12-17  7:50       ` Piotrek
2022-12-17  8:34         ` René Scharfe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: http://vger.kernel.org/majordomo-info.html

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c07a5ac4-3da6-6fb4-4586-a83373bc05d4@o2.pl \
    --to=piotrekkr@o2.pl \
    --cc=avarab@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=l.s.r@web.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).