@@ -209,8 +209,8 @@ func TestRepository_parseTagRef(t *testing.T) {
209209 name : "lightweight tag" ,
210210
211211 givenRef : map [string ]string {
212- "objecttype" : "commit" ,
213- "refname:short " : "v1.9.1" ,
212+ "objecttype" : "commit" ,
213+ "refname:lstrip=2 " : "v1.9.1" ,
214214 // object will be empty for lightweight tags
215215 "object" : "" ,
216216 "objectname" : "ab23e4b7f4cd0caafe0174c0e7ef6d651ba72889" ,
@@ -238,8 +238,8 @@ func TestRepository_parseTagRef(t *testing.T) {
238238 name : "annotated tag" ,
239239
240240 givenRef : map [string ]string {
241- "objecttype" : "tag" ,
242- "refname:short " : "v0.0.1" ,
241+ "objecttype" : "tag" ,
242+ "refname:lstrip=2 " : "v0.0.1" ,
243243 // object will refer to commit hash for annotated tag
244244 "object" : "3325fd8a973321fd59455492976c042dde3fd1ca" ,
245245 "objectname" : "8c68a1f06fc59c655b7e3905b159d761e91c53c9" ,
@@ -267,11 +267,11 @@ func TestRepository_parseTagRef(t *testing.T) {
267267 name : "annotated tag with signature" ,
268268
269269 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" ,
275275 "contents" : `Add changelog of v1.9.1 (#7859)
276276
277277* add changelog of v1.9.1
0 commit comments