From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id ANd/EqMBZGIoRQEAbAwnHQ (envelope-from ) for ; Sat, 23 Apr 2022 15:39:47 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id wAmiEaMBZGIdZgAAG6o9tA (envelope-from ) for ; Sat, 23 Apr 2022 15:39:47 +0200 Received: from mail.notmuchmail.org (yantan.tethera.net [135.181.149.255]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 0D34F9FF7 for ; Sat, 23 Apr 2022 15:39:47 +0200 (CEST) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id B787C5F77D; Sat, 23 Apr 2022 13:39:11 +0000 (UTC) Received: from fethera.tethera.net (fethera.tethera.net [IPv6:2607:5300:60:c5::1]) by mail.notmuchmail.org (Postfix) with ESMTP id 935C35F768 for ; Sat, 23 Apr 2022 13:39:08 +0000 (UTC) Received: by fethera.tethera.net (Postfix, from userid 1001) id 1DD1F5FC01; Sat, 23 Apr 2022 09:39:07 -0400 (EDT) Received: (nullmailer pid 3856556 invoked by uid 1000); Sat, 23 Apr 2022 13:38:57 -0000 From: David Bremner To: notmuch@notmuchmail.org Subject: [PATCH 06/16] CLI/git: suppress warnings about initial branch name Date: Sat, 23 Apr 2022 10:38:38 -0300 Message-Id: <20220423133848.3852688-7-david@tethera.net> X-Mailer: git-send-email 2.35.2 In-Reply-To: <20220423133848.3852688-1-david@tethera.net> References: <20220423133848.3852688-1-david@tethera.net> MIME-Version: 1.0 Message-ID-Hash: 2ZNCHBS75ETILAJ2YELYLKP7JJVUKERO X-Message-ID-Hash: 2ZNCHBS75ETILAJ2YELYLKP7JJVUKERO X-MailFrom: bremner@tethera.net X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.3 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: DE ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1650721187; 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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-owner:list-unsubscribe:list-subscribe:list-post; bh=KJbox08NyvEFrpo7ORQo+r9Hh9Pv84zJsULVSH0CV3o=; b=iQbDXVE15aX7V6/PgwVSeLX0OsSG2kwABqsvS6cpuk2ol3630zIGf0txs5JP+l35ogLub8 73+dpI9Q2CsklW30lB1GthIXI/QhXs5KpU7iCKAQ3CauLA3n6DxFSgv7HbbrXZzEg//4lW vAwSS4EPmRor9ZisgVCaZ6Ecibcr/q7ECnaQYVDpLqKxhvFPK5kM0Bd6UzVaA5EUp9IsKC bWdqWpTxsrRfqwkcsgYofeijI7v1JZDigjqAiJ9ot+5h0uNPMtqBdevnWunMrKovtZ+7L3 qKa6pSuEDKUKoBmL9kLBEmYY1QTy4enbrKbAVo4tizB4UK8P26jsa1e9bdJdtg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1650721187; a=rsa-sha256; cv=none; b=K9UmL9S/YpHVOTL8TtHatm5x1VhehxaqgO/KudjFA4vxXpBMfHmxoYz2gi70VcQH81ZErO nyZGc3EUebv36lqv5i9Wymy7IJFysfrFXAv8wICPRXAfP9nBgKzyCntfF3D2MCmuTJVz9y DPxZWUnyqLLbFrtfi1NUDOjJEWMsyi5bKRqjl8NM/Z6ggaZcM7YJBR786IMt33nAP90BC7 aVfg47fJHOrLo/i1XH2yqAefUKaENzkBE+EwRcHx1SnOq80eD+GdcBaxp4maf8/YSpYoB/ 7D5gu3RjS7eAmQMG+k881prhYHGdQ1Om94PVBmL1GvyguyySmmLHnOt06R9uqQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: -0.77 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 0D34F9FF7 X-Spam-Score: -0.77 X-Migadu-Scanner: scn1.migadu.com X-TUID: Q/is0seoREyk The canonical nmbug repository still uses "master" as the main branch name, so defer any potential switch away from that name. --- notmuch-git.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/notmuch-git.in b/notmuch-git.in index d574f19e..3a58fd28 100755 --- a/notmuch-git.in +++ b/notmuch-git.in @@ -384,7 +384,8 @@ def init(remote=None): This wraps 'git init' with a few extra steps to support subsequent status and commit commands. """ - _spawn(args=['git', '--git-dir', NMBGIT, 'init', '--bare'], wait=True) + _spawn(args=['git', '--git-dir', NMBGIT, 'init', + '--initial-branch=master', '--quiet', '--bare'], wait=True) _git(args=['config', 'core.logallrefupdates', 'true'], wait=True) # create an empty blob (e69de29bb2d1d6434b8b29ae775ad8c2e48c5391) _git(args=['hash-object', '-w', '--stdin'], input='', wait=True) -- 2.35.2