diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2021-05-30 04:04:58 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-29 16:04:58 -0400 |
commit | a9daebca2222ac0e97c0480e30a4e59d0906dd60 (patch) | |
tree | 0469ca84c562e1e4630a8c5ef9579b5c55dc189e /modules | |
parent | efe77eec85fd6524ceb66cacb35f054c2a180738 (diff) | |
download | gitea-a9daebca2222ac0e97c0480e30a4e59d0906dd60.tar.gz gitea-a9daebca2222ac0e97c0480e30a4e59d0906dd60.zip |
Fix get tag when migration (#16014)
Co-authored-by: zeripath <art27@cantab.net>
Diffstat (limited to 'modules')
-rw-r--r-- | modules/migrations/gitea_uploader.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/migrations/gitea_uploader.go b/modules/migrations/gitea_uploader.go index 8b865d7971..217acb00e2 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) } |