Make IsGit check less strict
This commit is contained in:
parent
87cc740e8a
commit
b113b2ac33
1 changed files with 2 additions and 2 deletions
|
@ -73,9 +73,9 @@ 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, "https://github.com/"):
|
case strings.HasPrefix(r.Path, "https://github"):
|
||||||
return true
|
return true
|
||||||
case strings.HasPrefix(r.Path, "http://github.com"):
|
case strings.HasPrefix(r.Path, "http://github"):
|
||||||
return true
|
return true
|
||||||
case strings.HasSuffix(r.Path, ".git"):
|
case strings.HasSuffix(r.Path, ".git"):
|
||||||
return true
|
return true
|
||||||
|
|
Loading…
Reference in a new issue