Skip to content

Commit 88121d9

Browse files
pks-tgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent b49831c commit 88121d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

t/t1410-reflog.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -469,11 +469,11 @@ test_expect_success 'expire one of multiple worktrees' '
469469
)
470470
'
471471

472-
test_expect_success REFFILES 'empty reflog' '
472+
test_expect_success 'empty reflog' '
473473
test_when_finished "rm -rf empty" &&
474474
git init empty &&
475475
test_commit -C empty A &&
476-
>empty/.git/logs/refs/heads/foo &&
476+
test-tool ref-store main create-reflog refs/heads/foo &&
477477
git -C empty reflog expire --all 2>err &&
478478
test_must_be_empty err
479479
'

0 commit comments

Comments
 (0)