Skip to content

Commit

Permalink
Fix get tag when migration (#16014)
Browse files Browse the repository at this point in the history
Co-authored-by: zeripath <[email protected]>
  • Loading branch information
lunny and zeripath authored May 29, 2021
1 parent efe77ee commit a9daebc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/migrations/gitea_uploader.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit a9daebc

Please sign in to comment.