force using the git protocol to downlaod every kind of repo non just from github

This commit is contained in:
gitirabassi
2018-08-30 11:02:03 +02:00
parent a81b2e32e0
commit a76cb0b008
2 changed files with 7 additions and 0 deletions

View File

@@ -78,6 +78,9 @@ func isRepoUrl(s string) bool {
if strings.HasPrefix(s, "https://") {
return true
}
if strings.HasPrefix(s, "git::") {
return true
}
host := strings.SplitN(s, "/", 2)[0]
return strings.Contains(host, ".com") || strings.Contains(host, ".org")
}