]> source.dussan.org Git - gitea.git/commit
Fix DownloadFunc when migrating releases (#27887) (#27890)
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)
commit8d0a4d7e9dd076a6c11588a92c091741f53c912e
tree334dafac38aed3847c5f1bde2ea8537d976b431d
parent9ca1853495768b0aafba9c477d20e0452a8c5bd6
Fix DownloadFunc when migrating releases (#27887) (#27890)

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