更改:tag去除前缀
This commit is contained in:
parent
feefd16ae1
commit
d9a412c3a2
|
|
@ -23,7 +23,7 @@ func ToTag(repo *repo.Repository, gitRepo *git.Repository, t *git.Tag) (tag *api
|
|||
return &api.Tag{}, err
|
||||
}
|
||||
return &api.Tag{
|
||||
Name: strings.TrimPrefix(t.Name, git.TagPrefix),
|
||||
Name: strings.TrimPrefix(t.Name, "tags/"),
|
||||
Message: strings.TrimSpace(t.Message),
|
||||
ID: t.ID.String(),
|
||||
Commit: tagCommit,
|
||||
|
|
|
|||
Loading…
Reference in New Issue