mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-09-18 08:01:00 +00:00
Make IsGit check less strict
This commit is contained in:
@@ -73,9 +73,9 @@ func (r *Repo) IsGit() bool {
|
||||
return true
|
||||
case strings.HasPrefix(r.Path, "ssh://git@"):
|
||||
return true
|
||||
case strings.HasPrefix(r.Path, "https://github.com/"):
|
||||
case strings.HasPrefix(r.Path, "https://github"):
|
||||
return true
|
||||
case strings.HasPrefix(r.Path, "http://github.com"):
|
||||
case strings.HasPrefix(r.Path, "http://github"):
|
||||
return true
|
||||
case strings.HasSuffix(r.Path, ".git"):
|
||||
return true
|
||||
|
Reference in New Issue
Block a user