]> source.dussan.org Git - gitea.git/commit
Fix DownloadFunc when migrating releases (#27887) (#27889)
authorGiteabot <teabot@gitea.io>
Fri, 3 Nov 2023 08:29:30 +0000 (16:29 +0800)
committerGitHub <noreply@github.com>
Fri, 3 Nov 2023 08:29:30 +0000 (08:29 +0000)
commit4a48370d91354c2857ade10a177c8827b5866e4c
treea73bebfa185e941ddc90f59c6f599eb323810ce6
parent1dedf9bba0bf909f9e275565604ec8f2adb5a86e
Fix DownloadFunc when migrating releases (#27887) (#27889)

Backport #27887 by @Zettat123

We should not use `asset.ID` in DownloadFunc because DownloadFunc is a
closure.

https://github.com/go-gitea/gitea/blob/1bf5527eac6b947010c8faf408f6747de2a2384f/services/migrations/gitea_downloader.go#L284-L295

A similar bug when migrating from GitHub has been fixed in #14703. This
PR fixes the bug when migrating from Gitea and GitLab.

Co-authored-by: Zettat123 <zettat123@gmail.com>
services/migrations/gitea_downloader.go
services/migrations/gitlab.go