mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-30 09:41:11 -05:00
61fc5c514a
If the Forgejo factory for the Forgejo service is not registered, newDownloader will fallback to a git service and not migrate issues etc. Refs: https://codeberg.org/forgejo/forgejo/issues/1678 (cherry picked from commit 2ecb2558be696965a49b543d5e843526c105e07a) Do not include tests so it is kept minimal.
20 lines
391 B
Go
20 lines
391 B
Go
// Copyright 2023 The Forgejo Authors
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
package migrations
|
|
|
|
import (
|
|
"code.gitea.io/gitea/modules/structs"
|
|
)
|
|
|
|
func init() {
|
|
RegisterDownloaderFactory(&ForgejoDownloaderFactory{})
|
|
}
|
|
|
|
type ForgejoDownloaderFactory struct {
|
|
GiteaDownloaderFactory
|
|
}
|
|
|
|
func (f *ForgejoDownloaderFactory) GitServiceType() structs.GitServiceType {
|
|
return structs.ForgejoService
|
|
}
|