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 4PJ+K5YBZGLrRAEAbAwnHQ (envelope-from ) for ; Sat, 23 Apr 2022 15:39:34 +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 cLCgKpYBZGJGAAEAG6o9tA (envelope-from ) for ; Sat, 23 Apr 2022 15:39:34 +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 6179415004 for ; Sat, 23 Apr 2022 15:39:34 +0200 (CEST) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 612735F770; Sat, 23 Apr 2022 13:39:09 +0000 (UTC) Received: from fethera.tethera.net (fethera.tethera.net [IPv6:2607:5300:60:c5::1]) by mail.notmuchmail.org (Postfix) with ESMTP id ED6025F75A for ; Sat, 23 Apr 2022 13:39:05 +0000 (UTC) Received: by fethera.tethera.net (Postfix, from userid 1001) id 6898F5FC01; Sat, 23 Apr 2022 09:39:04 -0400 (EDT) Received: (nullmailer pid 3856560 invoked by uid 1000); Sat, 23 Apr 2022 13:38:57 -0000 From: David Bremner To: notmuch@notmuchmail.org Subject: [PATCH 07/16] test: use "notmuch git init" for tests. Date: Sat, 23 Apr 2022 10:38:39 -0300 Message-Id: <20220423133848.3852688-8-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: DU2IISZLTSTWREIY5BZJQQSK3Y43CVQY X-Message-ID-Hash: DU2IISZLTSTWREIY5BZJQQSK3Y43CVQY 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=1650721174; 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=Tzr2GwvpARVKPv+fIAp/fOBz0esUTC11N8T1ehC2sPo=; b=QfD5S3ksYP6qlClAlkkpqs0yJk2Tt49v4mATSmKp0ZJuGjT0GndCHFCrqKYxkRxj1hRNtR IgYEwgqkjSVCsxT+DhVCuyE/aM0VC59/ez1MS0y9LASTI/66tfTP2onZUHllFOOOpzogUA f7fkQb1/7gK1W0us7ilMXMvxwr4jgjRvzYB9ayVITxaWveVFyghbQHqstS1pBbWk5hVwwy y4Qd2YtNT8h+YfXU7kJh3P4aW6VkKpfi9gVUfYQ0NvFilUCqR2Q/xRmHhOe6lX2pcZ8BMu 22+YFcW/DXJt/EWuG1js3ECfObp+J48+hrp89qw0YjG3ZR1QpMjl3MG2dS/tMw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1650721174; a=rsa-sha256; cv=none; b=GjMtSR7BciduoAUjuTmvClrVDbtJbnOgA4QO3BC4wrS5xRV+rDnAHGg4XI1aF8sW0O+G/s Un9t0rC8rqrlITIZnYbvtg/6LvWa3GT2iiODP6nUGz+hoyPw2il8E9t0mPD+FlSwz5j6pl J53yJBI+GMANqpZGijYIWbcIe0TB1Q6gkBVnZxinwOuln8XW7rZdrs1bikHw8P8hM13T8T if7kYBqyjenAvib7c28dMmy3slY2nfcYFLbdYD+SZs09Fh3QMZRgIA22TmcdC7kExEJ59C XJdRJ8rx2ztIgJHPSVl6tRE07r1xdv3f8NSSraw1jXDTuzkqTe18vJrcyMqiTQ== 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: 6179415004 X-Spam-Score: -0.77 X-Migadu-Scanner: scn0.migadu.com X-TUID: xWcrzvMJ6v5f Stick with the test-suite specific clone script for now, until clone no longer insists on the config branch (or init creates a config branch). --- test/T850-git.sh | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/test/T850-git.sh b/test/T850-git.sh index f52dd60d..d682141f 100755 --- a/test/T850-git.sh +++ b/test/T850-git.sh @@ -3,13 +3,7 @@ test_description='"notmuch git" to save and restore tags' . $(dirname "$0")/test-lib.sh || exit 1 add_git_repos () { - # first the equivalent of "notmuch git init" (which doesn't exist yet) - git init --bare --initial-branch=master --quiet remote.git - git -C remote.git read-tree --empty - tree=$(git -C remote.git write-tree) - git -C remote.git hash-object -w /dev/null > /dev/null - commit=$(echo 'root commit' | git -C remote.git commit-tree $tree) - git -C remote.git update-ref refs/heads/master $commit + notmuch git -C remote.git -p '' init # now make a "local" repo to work on git clone --bare --quiet remote.git tags.git -- 2.35.2