From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS3215 2.6.0.0/16 X-Spam-Status: No, score=-3.9 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by dcvr.yhbt.net (Postfix) with ESMTP id 7962B1F61A for ; Tue, 13 Dec 2022 21:05:30 +0000 (UTC) Authentication-Results: dcvr.yhbt.net; dkim=pass (1024-bit key; unprotected) header.d=o2.pl header.i=@o2.pl header.b="Ur2pZsAw"; dkim-atps=neutral Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236809AbiLMVCy (ORCPT ); Tue, 13 Dec 2022 16:02:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55852 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236601AbiLMVCx (ORCPT ); Tue, 13 Dec 2022 16:02:53 -0500 Received: from mx-out.tlen.pl (mx-out.tlen.pl [193.222.135.142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 719935F59 for ; Tue, 13 Dec 2022 13:02:50 -0800 (PST) Received: (wp-smtpd smtp.tlen.pl 8452 invoked from network); 13 Dec 2022 22:02:46 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=o2.pl; s=1024a; t=1670965366; bh=WCTLTcy4okJdHdi4KpGrnlwnkGotr4pgBQjFKMrBIdo=; h=Subject:To:Cc:From; b=Ur2pZsAwb+OdgBZOCurY20esLsUqCnmvj5fXAhWF13/DLLbuz4841eTX7Xg0AdtoU zlt2pzUsIvXEDXjqXnzWMiIAXfSPDdLjq17q0dTt8+CRMthh7ljuE45U/E0bdgTIGm Gn1emqaTS7biVozeczNuCje7YYV7adVj0EGELRn4= Received: from mail.dtcasino.pl (HELO [192.168.1.5]) (piotrekkr@o2.pl@[212.180.138.13]) (envelope-sender ) by smtp.tlen.pl (WP-SMTPD) with ECDHE-RSA-AES256-GCM-SHA384 encrypted SMTP for ; 13 Dec 2022 22:02:46 +0100 Message-ID: Date: Tue, 13 Dec 2022 22:02:46 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 Subject: Re: Issue with git > 2.36.1 and pre-commit hook on macOS M1 To: =?UTF-8?Q?Ren=c3=a9_Scharfe?= Cc: =?UTF-8?B?w4Z2YXIgQXJuZmrDtnLDsCBCamFybWFzb24=?= , git@vger.kernel.org References: <51d5993f-a1e0-519e-ffa9-ec5205c5e96d@o2.pl> <30f80aa4-d5c1-4fce-f1c9-710eabeaa022@web.de> Content-Language: en-GB-large From: Piotrek In-Reply-To: <30f80aa4-d5c1-4fce-f1c9-710eabeaa022@web.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-WP-MailID: 8edf3adc2f91ca212115ccef80bc89c3 X-WP-AV: skaner antywirusowy Poczty o2 X-WP-SPAM: NO 0000001 [EaLV] Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org 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é.