From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.4 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 94D73C38A24 for ; Thu, 7 May 2020 12:05:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 679432075E for ; Thu, 7 May 2020 12:05:11 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="R4qLGxbC" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725949AbgEGMFK (ORCPT ); Thu, 7 May 2020 08:05:10 -0400 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:44470 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725848AbgEGMFK (ORCPT ); Thu, 7 May 2020 08:05:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1588853109; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=K2b8GrKXClnDkupvOfCgZhrncjhXXm0/tHh4EGW7LO8=; b=R4qLGxbCo4fMbd2/MGstqSTwqkjCmBW3bp5GpUMzWlO2juluQ+l7/XRt1cfvKHopYrk9sT TfdKv+Fd1Wy1Pp/9FlYxjgtguHx2UkWOZ3a9bQWQFcupvErfBYezl949XbDWcd1mYBPOCx jLdkaGs65vdGTfiN40dQUBk0qQzSIW4= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-432-NTY36ud_NEiG9JpxkZ6nZA-1; Thu, 07 May 2020 08:05:07 -0400 X-MC-Unique: NTY36ud_NEiG9JpxkZ6nZA-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 821D1107ACCD for ; Thu, 7 May 2020 12:05:06 +0000 (UTC) Received: from lacos-laptop-7.usersys.redhat.com (ovpn-114-11.ams2.redhat.com [10.36.114.11]) by smtp.corp.redhat.com (Postfix) with ESMTP id 24F5A60CD1 for ; Thu, 7 May 2020 12:05:05 +0000 (UTC) To: public git mailing list From: Laszlo Ersek Subject: "--quiet" for git-push does not suppress remote hook output Message-ID: Date: Thu, 7 May 2020 14:05:05 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Hi, being a total novice in git internals, it seems like "builtin/receive-pack.c" (on the server) forwards any receive hook output with copy_to_sideband() back to git-push (on the client), even if git-push was invoked with "--quiet". And "case 2" in demultiplex_sideband() seems to print that "band" to stderr (on the client), despite "--quiet". Is this intentional? I'd prefer "git push --quiet" to suppress remote hook output (unless the remote hook fails). Thanks! Laszlo