add more gitea hosts

This commit is contained in:
figsoda 2023-01-02 15:22:39 -05:00
parent 946688974f
commit be1ef9d3c1

View File

@ -65,9 +65,11 @@ fn main() -> Result<()> {
FetchFromGitLab::new(Some(host)).into()
}
(None | Some(FetcherFunction::FetchFromGitea), Some(host @ "codeberg.org"), _) => {
FetchFromGitea(host).into()
}
(
None | Some(FetcherFunction::FetchFromGitea),
Some(host @ ("codeberg.org" | "gitea.com" | "notabug.org")),
_,
) => FetchFromGitea(host).into(),
(Some(FetcherFunction::FetchFromGitea), Some(host), _) => FetchFromGitea(host).into(),
(None | Some(FetcherFunction::FetchFromGitiles), Some(host), _)