]> git.ipfire.org Git - thirdparty/git.git/commitdiff
t1410: use test-tool ref-store to inspect reflogs
authorHan-Wen Nienhuys <hanwen@google.com>
Wed, 9 Feb 2022 11:29:39 +0000 (11:29 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 10 Feb 2022 06:33:08 +0000 (22:33 -0800)
This makes the test compatible with reftable (it doesn't pass yet for
other reasons, unfortunately)

Signed-off-by: Han-Wen Nienhuys <hanwen@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t1410-reflog.sh

index d7ddf7612d48363ccbac0a4a80d8399bae7b453f..36f6693d9d3a6b3496a079c0c58f6f148de9bd6d 100755 (executable)
@@ -418,7 +418,8 @@ test_expect_success 'expire with multiple worktrees' '
                test_commit -C link-wt foobar &&
                test_tick &&
                git reflog expire --verbose --all --expire=$test_tick &&
-               test_must_be_empty .git/worktrees/link-wt/logs/HEAD
+               test-tool ref-store worktree:link-wt for-each-reflog-ent HEAD >actual &&
+               test_must_be_empty actual
        )
 '