]> git.ipfire.org Git - thirdparty/git.git/commitdiff
t0610: remove unused variable assignment
authorPatrick Steinhardt <ps@pks.im>
Wed, 6 Mar 2024 11:17:27 +0000 (12:17 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 6 Mar 2024 16:40:40 +0000 (08:40 -0800)
In b0f6b6b523 (refs/reftable: don't fail empty transactions in repo
without HEAD, 2024-02-27), we have added a new test to t0610. This test
contains a useless assignment to a variable that is never actually used.
Remove it.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t0610-reftable-basics.sh

index c5f4d23433d88b5d4a5e9b92d2c986042b849bd3..686781192eb7c2d820e28393b6d0352db3f4822e 100755 (executable)
@@ -332,7 +332,6 @@ test_expect_success 'ref transaction: empty transaction in empty repo' '
        test_when_finished "rm -rf repo" &&
        git init repo &&
        test_commit -C repo --no-tag A &&
-       COMMIT=$(git -C repo rev-parse HEAD) &&
        git -C repo update-ref -d refs/heads/main &&
        test-tool -C repo ref-store main delete-refs REF_NO_DEREF msg HEAD &&
        git -C repo update-ref --stdin <<-EOF