mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-27 21:03:56 +01:00
Fix get tag when migration (#16014)
Co-authored-by: zeripath <art27@cantab.net>
This commit is contained in:
parent
efe77eec85
commit
a9daebca22
1 changed files with 1 additions and 1 deletions
|
@ -252,7 +252,7 @@ func (g *GiteaLocalUploader) CreateReleases(releases ...*base.Release) error {
|
|||
|
||||
// calc NumCommits if no draft
|
||||
if !release.Draft {
|
||||
commit, err := g.gitRepo.GetCommit(rel.TagName)
|
||||
commit, err := g.gitRepo.GetTagCommit(rel.TagName)
|
||||
if err != nil {
|
||||
return fmt.Errorf("GetCommit: %v", err)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue