Skip to content

Commit

Permalink
resolve fossil-scm.org and sqlite.org as fossil repository
Browse files Browse the repository at this point in the history
  • Loading branch information
Songmu committed Nov 9, 2024
1 parent a4a1136 commit 3e5e837
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions remote_repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3e5e837

Please sign in to comment.