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