@@ -126,6 +126,7 @@ test_expect_success GPG 'message for merging local tag signed by good key' '
126126 git fetch . signed-good-tag &&
127127 git fmt-merge-msg <.git/FETCH_HEAD >actual &&
128128 grep "^Merge tag ${apos}signed-good-tag${apos}" actual &&
129+ grep "^signed-tag-msg" actual &&
129130 grep "^# gpg: Signature made" actual &&
130131 grep "^# gpg: Good signature from" actual
131132'
@@ -135,6 +136,7 @@ test_expect_success GPG 'message for merging local tag signed by unknown key' '
135136 git fetch . signed-good-tag &&
136137 GNUPGHOME=. git fmt-merge-msg <.git/FETCH_HEAD >actual &&
137138 grep "^Merge tag ${apos}signed-good-tag${apos}" actual &&
139+ grep "^signed-tag-msg" actual &&
138140 grep "^# gpg: Signature made" actual &&
139141 grep -E "^# gpg: Can${apos}t check signature: (public key not found|No public key)" actual
140142'
@@ -145,6 +147,7 @@ test_expect_success GPGSSH 'message for merging local tag signed by good ssh key
145147 git fetch . signed-good-ssh-tag &&
146148 git fmt-merge-msg <.git/FETCH_HEAD >actual &&
147149 grep "^Merge tag ${apos}signed-good-ssh-tag${apos}" actual &&
150+ grep "^signed-ssh-tag-msg" actual &&
148151 grep "${GPGSSH_GOOD_SIGNATURE_TRUSTED}" actual &&
149152 ! grep "${GPGSSH_BAD_SIGNATURE}" actual
150153'
@@ -155,6 +158,7 @@ test_expect_success GPGSSH 'message for merging local tag signed by unknown ssh
155158 git fetch . signed-untrusted-ssh-tag &&
156159 git fmt-merge-msg <.git/FETCH_HEAD >actual &&
157160 grep "^Merge tag ${apos}signed-untrusted-ssh-tag${apos}" actual &&
161+ grep "^signed-ssh-tag-msg-untrusted" actual &&
158162 grep "${GPGSSH_GOOD_SIGNATURE_UNTRUSTED}" actual &&
159163 ! grep "${GPGSSH_BAD_SIGNATURE}" actual &&
160164 grep "${GPGSSH_KEY_NOT_TRUSTED}" actual
@@ -166,6 +170,7 @@ test_expect_success GPGSSH,GPGSSH_VERIFYTIME 'message for merging local tag sign
166170 git fetch . expired-signed &&
167171 git fmt-merge-msg <.git/FETCH_HEAD >actual &&
168172 grep "^Merge tag ${apos}expired-signed${apos}" actual &&
173+ grep "^expired-signed" actual &&
169174 ! grep "${GPGSSH_GOOD_SIGNATURE_TRUSTED}" actual
170175'
171176
@@ -175,6 +180,7 @@ test_expect_success GPGSSH,GPGSSH_VERIFYTIME 'message for merging local tag sign
175180 git fetch . notyetvalid-signed &&
176181 git fmt-merge-msg <.git/FETCH_HEAD >actual &&
177182 grep "^Merge tag ${apos}notyetvalid-signed${apos}" actual &&
183+ grep "^notyetvalid-signed" actual &&
178184 ! grep "${GPGSSH_GOOD_SIGNATURE_TRUSTED}" actual
179185'
180186
@@ -184,6 +190,7 @@ test_expect_success GPGSSH,GPGSSH_VERIFYTIME 'message for merging local tag sign
184190 git fetch . timeboxedvalid-signed &&
185191 git fmt-merge-msg <.git/FETCH_HEAD >actual &&
186192 grep "^Merge tag ${apos}timeboxedvalid-signed${apos}" actual &&
193+ grep "^timeboxedvalid-signed" actual &&
187194 grep "${GPGSSH_GOOD_SIGNATURE_TRUSTED}" actual &&
188195 ! grep "${GPGSSH_BAD_SIGNATURE}" actual
189196'
@@ -194,6 +201,7 @@ test_expect_success GPGSSH,GPGSSH_VERIFYTIME 'message for merging local tag sign
194201 git fetch . timeboxedinvalid-signed &&
195202 git fmt-merge-msg <.git/FETCH_HEAD >actual &&
196203 grep "^Merge tag ${apos}timeboxedinvalid-signed${apos}" actual &&
204+ grep "^timeboxedinvalid-signed" actual &&
197205 ! grep "${GPGSSH_GOOD_SIGNATURE_TRUSTED}" actual
198206'
199207
0 commit comments