t1410: use test-tool to create empty reflog
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 <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Patrick Steinhardt committed
Nov 29, 2023 at 08:24 UTC
88121d93714507fe8bb0bddfaffe0bf4a0a88a36
1 file changed
+2
-2
t/t1410-reflog.sh
+2
-2
@@ -469,11 +469,11 @@ test_expect_success 'expire one of multiple worktrees' '
469
)
470
'
471
472
-test_expect_success REFFILES 'empty reflog' '
472
+test_expect_success 'empty reflog' '
473
test_when_finished "rm -rf empty" &&
474
git init empty &&
475
test_commit -C empty A &&
476
- >empty/.git/logs/refs/heads/foo &&
476
+ test-tool ref-store main create-reflog refs/heads/foo &&
477
git -C empty reflog expire --all 2>err &&
478
test_must_be_empty err
479
'