Make IsGit check less strict

This commit is contained in:
Vsevolod Strukchinsky 2014-02-09 20:24:13 +06:00
parent 87cc740e8a
commit b113b2ac33

View file

@ -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