Skip to content

Commit

Permalink
Merge pull request #406 from x-motemen/fossil-more
Browse files Browse the repository at this point in the history
resolve fossil-scm.org and sqlite.org as fossil repository
  • Loading branch information
Songmu authored Nov 9, 2024
2 parents a4a1136 + 3e5e837 commit 636f183
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 636f183

Please sign in to comment.