From a9daebca2222ac0e97c0480e30a4e59d0906dd60 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Sun, 30 May 2021 04:04:58 +0800 Subject: [PATCH] Fix get tag when migration (#16014) Co-authored-by: zeripath --- modules/migrations/gitea_uploader.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/migrations/gitea_uploader.go b/modules/migrations/gitea_uploader.go index 8b865d797152..217acb00e215 100644 --- a/modules/migrations/gitea_uploader.go +++ b/modules/migrations/gitea_uploader.go @@ -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) }