aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2024-03-06 12:17:27 +0100
committerJunio C Hamano <gitster@pobox.com>2024-03-06 08:40:40 -0800
commite0795e2c7912bc407e311b8cd3ae908bc354d8c9 (patch)
tree7f8abfe922f7aeffe2e3fa12692ea64d28907d22
parentb0f6b6b523c58cb204292455ed7121896f0aa6ed (diff)
downloadgit-e0795e2c7912bc407e311b8cd3ae908bc354d8c9.tar.xz
t0610: remove unused variable assignment
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>
-rwxr-xr-xt/t0610-reftable-basics.sh1
1 files changed, 0 insertions, 1 deletions
diff --git a/t/t0610-reftable-basics.sh b/t/t0610-reftable-basics.sh
index c5f4d23433..686781192e 100755
--- a/t/t0610-reftable-basics.sh
+++ b/t/t0610-reftable-basics.sh
@@ -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