Skip to content

Commit ed8d1d4

Browse files
hanwengitster
authored andcommitted
t7004: use "test-tool ref-store" for reflog inspection
This makes the test work with reftable. Signed-off-by: Han-Wen Nienhuys <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent be49349 commit ed8d1d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

t/t7004-tag.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ test_expect_success 'creating a tag with --create-reflog should create reflog' '
9797
test_when_finished "git tag -d tag_with_reflog1" &&
9898
git tag --create-reflog tag_with_reflog1 &&
9999
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 &&
101101
test_cmp expected actual
102102
'
103103

@@ -108,7 +108,7 @@ test_expect_success 'annotated tag with --create-reflog has correct message' '
108108
test_when_finished "git tag -d tag_with_reflog2" &&
109109
git tag -m "annotated tag" --create-reflog tag_with_reflog2 &&
110110
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 &&
112112
test_cmp expected actual
113113
'
114114

0 commit comments

Comments
 (0)