diff --git a/internal/project/git.go b/internal/project/git.go index 4df2cb2..cfc942d 100644 --- a/internal/project/git.go +++ b/internal/project/git.go @@ -17,6 +17,8 @@ import ( ) const GitScheme = "git" +const HTTPScheme = "http" +const HTTPSScheme = "https" type GitFetcher struct{} @@ -88,7 +90,7 @@ func (f *GitFetcher) Match(url *url.URL) bool { return true } - if strings.HasSuffix(url.Path, ".git") { + if (url.Scheme == HTTPSScheme || url.Scheme == HTTPScheme) && strings.HasSuffix(url.Path, ".git") { return true }