From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id WD8tNuJDgWKsgQEAbAwnHQ (envelope-from ) for ; Sun, 15 May 2022 20:18:11 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id iPYoNeJDgWKA8wAAG6o9tA (envelope-from ) for ; Sun, 15 May 2022 20:18:10 +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 A364111C26 for ; Sun, 15 May 2022 20:18:10 +0200 (CEST) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 1DA035F77A; Sun, 15 May 2022 18:17:30 +0000 (UTC) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by mail.notmuchmail.org (Postfix) with ESMTP id 23DC95F76E for ; Sun, 15 May 2022 18:17:26 +0000 (UTC) Received: by fethera.tethera.net (Postfix, from userid 1001) id 9CE7E5FC11; Sun, 15 May 2022 14:17:25 -0400 (EDT) Received: (nullmailer pid 57823 invoked by uid 1000); Sun, 15 May 2022 18:17:13 -0000 From: David Bremner To: notmuch@notmuchmail.org Subject: [PATCH 08/17] CLI/git: suppress warnings about initial branch name Date: Sun, 15 May 2022 15:14:13 -0300 Message-Id: <20220515181421.57088-9-david@tethera.net> X-Mailer: git-send-email 2.35.2 In-Reply-To: <20220515181421.57088-1-david@tethera.net> References: <20220515181421.57088-1-david@tethera.net> MIME-Version: 1.0 Message-ID-Hash: AHPHLJIIL2ZEMSW5OK74WU6G65G67XYC X-Message-ID-Hash: AHPHLJIIL2ZEMSW5OK74WU6G65G67XYC 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=1652638690; 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=GpIWua6e8VU77E1555aN2d/x5x0Znr77RkEES9S3ziM=; b=jnLsTZFm+DZkILzSr1rAaQCpHttpZoLVX+3cBbaiK7JKzDo0Vw9NwEv7YAKbHx2uMaUjHv 84l4WAa3f1Q+T7QB8Ct0El05PeGoIXNBBZmB55hLW96IQIVRMN+MrnEO/Lj2J8iL0R/DJ7 hWXLfyBw1UugM1/NlUB2QesikWWr9DGpAYxSCH/vvuk/3YrPCoDwqs8hoDYZRcdaBpxtdk nojZvD733PiHx2BllZMooK6By+Bnw+rjc7ujcv4kBEG5ZDSYGIO1BeymeSehJxma4iB4qv R5I7ZvKEJpECncEBPYTD8rxg1dmmDFnTuQJ9nJ/KBzV/7bTtyfr+vzVJM8hPqw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1652638690; a=rsa-sha256; cv=none; b=gPVgY1KbrC4UJXKDma4bN8gMrBnIRi1+Kfj9Tu7lWJ/7doX13lPUak9QAD27fNF2Y09g2J 0vha0jnGd/KNc5FRPQQEIWOlt/qzY/xiyReKQJ854BZEu8IKyj/Mjw+FLgDtIzjWe0Y6A6 a0Lz+Gzux9hwwnRcbz1aiSONaDPg4AOAm4BbAGB6SNL8sZ0OjLFMYBO5h13M74tTHGDg2d vFSM5L/j2//gGOzEKwhGhUJx2uo5ELLuwOYMUSZ17ofAp4xQ/DUN1gQoh3p/gMDTUBJXek /JnyfloFg8+x9nylqfSVYdvuPiQ4rLWDViA9cl4SfuDsehTGJz8VUypRKMf6dg== 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: -1.45 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: A364111C26 X-Spam-Score: -1.45 X-Migadu-Scanner: scn0.migadu.com X-TUID: AGZgU+8YaDvh 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 f27591c9..78e4b140 100755 --- a/notmuch-git.in +++ b/notmuch-git.in @@ -353,7 +353,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', NOTMUCH_GIT_DIR, 'init', '--bare'], wait=True) + _spawn(args=['git', '--git-dir', NOTMUCH_GIT_DIR, '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