更改:tag去除前缀

This commit is contained in:
yystopf 2026-01-19 17:25:22 +08:00
parent feefd16ae1
commit d9a412c3a2
1 changed files with 1 additions and 1 deletions

View File

@ -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,