From patchwork Wed Nov 29 07:24:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Patrick Steinhardt X-Patchwork-Id: 13472332 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=pks.im header.i=@pks.im header.b="OmgYkrty"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="rAn/B9av" Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CBBF4C9 for ; Tue, 28 Nov 2023 23:24:56 -0800 (PST) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 3A8DC5C01BD for ; Wed, 29 Nov 2023 02:24:56 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Wed, 29 Nov 2023 02:24:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pks.im; h=cc :content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm1; t=1701242696; x=1701329096; bh=4+ unpVzOvVryyzyC1aPUoj1ZJ9BSn+4Vqc281WHt5uo=; b=OmgYkrty94wvEvRaO2 3AANA0BcjInutRS55dhX0QIALZ50Gdhnq20TIinALqjJI5hKDh3FxVlU7qiJcqE9 0cZIuWDP/1JnjMaWVpE+dlzmM6T8QTsXlNZ9dwyqEeWWGWQiymtn+KH6/HAj/9Of HGrfwmW6kWVnCz2Tj21n6tLcJbxKQ/vohbop695ydwUovAqfLTxXWlwYVvPhCRI/ nYJM3I0tcTASW1hDCtV3ZOmc4xXZP4nObvzJ6e2k7EYOq+ASefMbRHKI8Xk9BYxG X9dfbS0TahdZVsPFHcUxSYVR49CCXUHcJ/neZ8SRXRr2U82/0iV3wkOScDP9fnmm jLvA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; t=1701242696; x=1701329096; bh=4+unpVzOvVryy zyC1aPUoj1ZJ9BSn+4Vqc281WHt5uo=; b=rAn/B9av9/lKHIg+DYYNmKJf3CX5o VNUkqVRYRPzoZ19eT53DTZQcWcVWmUhdX7Yl3FUF+wyCuUtNWzZn/aBeQaBA0enr USWVKp8pvvbK1hLikYmd8zf7hnqYTuhCcNCVOXe2ek7em9TIE9Rx0HzhsutpJgcQ jlOYmougj4N0HXZSCCZ2bxOYI2TdBup9P8v3A0acVfHv1DXAohg6j1mixIxrNN3H zB1+/l08eqV9DXUROJvWt1gA27RbrIqJ244qwig/4HSTS0uSr7Te8zahCYDwCkgV 94XZARPjJxhHww0E4IGoruybY4v+lLjeoL0Q4q/mUgcyToBZgZEmcPA9g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudeigedguddtiecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepfffhvffukfhfgggtuggjsehgtd erredttddvnecuhfhrohhmpefrrghtrhhitghkucfuthgvihhnhhgrrhguthcuoehpshes phhkshdrihhmqeenucggtffrrghtthgvrhhnpeehgefhtdefueffheekgfffudelffejtd fhvdejkedthfehvdelgfetgfdvtedthfenucevlhhushhtvghrufhiiigvpedtnecurfgr rhgrmhepmhgrihhlfhhrohhmpehpshesphhkshdrihhm X-ME-Proxy: Feedback-ID: i197146af:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Wed, 29 Nov 2023 02:24:55 -0500 (EST) Received: by vm-mail (OpenSMTPD) with ESMTPSA id 74e281a8 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for ; Wed, 29 Nov 2023 07:23:44 +0000 (UTC) Date: Wed, 29 Nov 2023 08:24:53 +0100 From: Patrick Steinhardt To: git@vger.kernel.org Subject: [PATCH 04/10] t1410: use test-tool to create empty reflog Message-ID: References: Precedence: bulk X-Mailing-List: git@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: One of the tests in t1410 is marked to be specific to the files reference backend, which is because we create a reflog manually by creating the respective file. Refactor the test to instead use our `test-tool ref-store` helper to create the reflog so that it works with other reference backends, as well. Signed-off-by: Patrick Steinhardt --- t/t1410-reflog.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/t/t1410-reflog.sh b/t/t1410-reflog.sh index aeddc2fb3f..a0ff8d51f0 100755 --- a/t/t1410-reflog.sh +++ b/t/t1410-reflog.sh @@ -469,11 +469,11 @@ test_expect_success 'expire one of multiple worktrees' ' ) ' -test_expect_success REFFILES 'empty reflog' ' +test_expect_success 'empty reflog' ' test_when_finished "rm -rf empty" && git init empty && test_commit -C empty A && - >empty/.git/logs/refs/heads/foo && + test-tool ref-store main create-reflog refs/heads/foo && git -C empty reflog expire --all 2>err && test_must_be_empty err '