From 3e5e837a63b6eddb20557efde7b68dd603190bdf Mon Sep 17 00:00:00 2001 From: Songmu Date: Sat, 9 Nov 2024 11:56:55 +0900 Subject: [PATCH] resolve fossil-scm.org and sqlite.org as fossil repository --- remote_repository.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/remote_repository.go b/remote_repository.go index 131bb4f..52546dc 100644 --- a/remote_repository.go +++ b/remote_repository.go @@ -201,6 +201,11 @@ func (repo *OtherRepository) VCS() (*VCSBackend, *url.URL, error) { return SubversionBackend, repo.URL(), nil } + switch repo.url.Host { + case "fossil-scm.org", "sqlite.org": + return FossilBackend, repo.URL(), nil + } + // Detect VCS backend automatically if cmdutil.RunSilently("git", "ls-remote", repo.url.String()) == nil { return GitBackend, repo.URL(), nil