t7004: use "test-tool ref-store" for reflog inspection

This makes the test work with reftable. Signed-off-by: Han-Wen Nienhuys <hanwen@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Han-Wen Nienhuys committed Dec 22, 2021 at 10:59 UTC ed8d1d42d0ffc221340557614aa33bf8d3aba65f
1 file changed +2 -2
t/t7004-tag.sh
+2 -2
@@ -97,7 +97,7 @@ test_expect_success 'creating a tag with --create-reflog should create reflog' '
97 test_when_finished "git tag -d tag_with_reflog1" &&
98 git tag --create-reflog tag_with_reflog1 &&
99 git reflog exists refs/tags/tag_with_reflog1 &&
100 - sed -e "s/^.* //" .git/logs/refs/tags/tag_with_reflog1 >actual &&
100 + test-tool ref-store main for-each-reflog-ent refs/tags/tag_with_reflog1 | sed -e "s/^.* //" >actual &&
101 test_cmp expected actual
102 '
103
@@ -108,7 +108,7 @@ test_expect_success 'annotated tag with --create-reflog has correct message' '
108 test_when_finished "git tag -d tag_with_reflog2" &&
109 git tag -m "annotated tag" --create-reflog tag_with_reflog2 &&
110 git reflog exists refs/tags/tag_with_reflog2 &&
111 - sed -e "s/^.* //" .git/logs/refs/tags/tag_with_reflog2 >actual &&
111 + test-tool ref-store main for-each-reflog-ent refs/tags/tag_with_reflog2 | sed -e "s/^.* //" >actual &&
112 test_cmp expected actual
113 '
114