@@ -94,21 +94,21 @@ test_expect_success 'creating a tag with --create-reflog should create reflog' '
94
94
git log -1 \
95
95
--format="format:tag: tagging %h (%s, %cd)%n" \
96
96
--date=format:%Y-%m-%d >expected &&
97
- test_when_finished "git tag -d tag_with_reflog " &&
98
- git tag --create-reflog tag_with_reflog &&
99
- git reflog exists refs/tags/tag_with_reflog &&
100
- sed -e "s/^.* //" .git/logs/refs/tags/tag_with_reflog >actual &&
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
+ test-tool ref-store main for-each-reflog-ent refs/tags/tag_with_reflog1 | sed -e "s/^.* //" >actual &&
101
101
test_cmp expected actual
102
102
'
103
103
104
104
test_expect_success ' annotated tag with --create-reflog has correct message' '
105
105
git log -1 \
106
106
--format="format:tag: tagging %h (%s, %cd)%n" \
107
107
--date=format:%Y-%m-%d >expected &&
108
- test_when_finished "git tag -d tag_with_reflog " &&
109
- git tag -m "annotated tag" --create-reflog tag_with_reflog &&
110
- git reflog exists refs/tags/tag_with_reflog &&
111
- sed -e "s/^.* //" .git/logs/refs/tags/tag_with_reflog >actual &&
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
+ test-tool ref-store main for-each-reflog-ent refs/tags/tag_with_reflog2 | sed -e "s/^.* //" >actual &&
112
112
test_cmp expected actual
113
113
'
114
114
@@ -118,10 +118,10 @@ test_expect_success '--create-reflog does not create reflog on failure' '
118
118
'
119
119
120
120
test_expect_success ' option core.logAllRefUpdates=always creates reflog' '
121
- test_when_finished "git tag -d tag_with_reflog " &&
121
+ test_when_finished "git tag -d tag_with_reflog3 " &&
122
122
test_config core.logAllRefUpdates always &&
123
- git tag tag_with_reflog &&
124
- git reflog exists refs/tags/tag_with_reflog
123
+ git tag tag_with_reflog3 &&
124
+ git reflog exists refs/tags/tag_with_reflog3
125
125
'
126
126
127
127
test_expect_success ' listing all tags if one exists should succeed' '
0 commit comments