mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-27 12:21:03 +00:00
commit
8d493b393c
1 changed files with 6 additions and 0 deletions
|
@ -50,6 +50,8 @@ func (r *Repo) IsRemote() bool {
|
||||||
return true
|
return true
|
||||||
case strings.HasPrefix(r.Path, "git@"):
|
case strings.HasPrefix(r.Path, "git@"):
|
||||||
return true
|
return true
|
||||||
|
case strings.HasPrefix(r.Path, "gitlab@"):
|
||||||
|
return true
|
||||||
case strings.HasPrefix(r.Path, "http://"):
|
case strings.HasPrefix(r.Path, "http://"):
|
||||||
return true
|
return true
|
||||||
case strings.HasPrefix(r.Path, "https://"):
|
case strings.HasPrefix(r.Path, "https://"):
|
||||||
|
@ -77,6 +79,10 @@ func (r *Repo) IsGit() bool {
|
||||||
return true
|
return true
|
||||||
case strings.HasPrefix(r.Path, "ssh://git@"):
|
case strings.HasPrefix(r.Path, "ssh://git@"):
|
||||||
return true
|
return true
|
||||||
|
case strings.HasPrefix(r.Path, "gitlab@"):
|
||||||
|
return true
|
||||||
|
case strings.HasPrefix(r.Path, "ssh://gitlab@"):
|
||||||
|
return true
|
||||||
case strings.HasPrefix(r.Path, "https://github"):
|
case strings.HasPrefix(r.Path, "https://github"):
|
||||||
return true
|
return true
|
||||||
case strings.HasPrefix(r.Path, "http://github"):
|
case strings.HasPrefix(r.Path, "http://github"):
|
||||||
|
|
Loading…
Reference in a new issue