@@ -208,8 +208,8 @@ func TestRepository_parseTagRef(t *testing.T) {
208
208
name : "lightweight tag" ,
209
209
210
210
givenRef : map [string ]string {
211
- "objecttype" : "commit" ,
212
- "refname:short " : "v1.9.1" ,
211
+ "objecttype" : "commit" ,
212
+ "refname:lstrip=2 " : "v1.9.1" ,
213
213
// object will be empty for lightweight tags
214
214
"object" : "" ,
215
215
"objectname" : "ab23e4b7f4cd0caafe0174c0e7ef6d651ba72889" ,
@@ -237,8 +237,8 @@ func TestRepository_parseTagRef(t *testing.T) {
237
237
name : "annotated tag" ,
238
238
239
239
givenRef : map [string ]string {
240
- "objecttype" : "tag" ,
241
- "refname:short " : "v0.0.1" ,
240
+ "objecttype" : "tag" ,
241
+ "refname:lstrip=2 " : "v0.0.1" ,
242
242
// object will refer to commit hash for annotated tag
243
243
"object" : "3325fd8a973321fd59455492976c042dde3fd1ca" ,
244
244
"objectname" : "8c68a1f06fc59c655b7e3905b159d761e91c53c9" ,
@@ -266,11 +266,11 @@ func TestRepository_parseTagRef(t *testing.T) {
266
266
name : "annotated tag with signature" ,
267
267
268
268
givenRef : map [string ]string {
269
- "objecttype" : "tag" ,
270
- "refname:short " : "v0.0.1" ,
271
- "object" : "3325fd8a973321fd59455492976c042dde3fd1ca" ,
272
- "objectname" : "8c68a1f06fc59c655b7e3905b159d761e91c53c9" ,
273
- "creator" : "Foo Bar <foo@bar.com> 1565789218 +0300" ,
269
+ "objecttype" : "tag" ,
270
+ "refname:lstrip=2 " : "v0.0.1" ,
271
+ "object" : "3325fd8a973321fd59455492976c042dde3fd1ca" ,
272
+ "objectname" : "8c68a1f06fc59c655b7e3905b159d761e91c53c9" ,
273
+ "creator" : "Foo Bar <foo@bar.com> 1565789218 +0300" ,
274
274
"contents" : `Add changelog of v1.9.1 (#7859)
275
275
276
276
* add changelog of v1.9.1
0 commit comments