Merge pull request #4364 from vieux/move_clone

move git clone from daemon to client
This commit is contained in:
Guillaume J. Charmes
2014-03-17 11:36:56 -07:00
3 changed files with 35 additions and 11 deletions
+1 -1
View File
@@ -714,7 +714,7 @@ func IsURL(str string) bool {
}
func IsGIT(str string) bool {
return strings.HasPrefix(str, "git://") || strings.HasPrefix(str, "github.com/")
return strings.HasPrefix(str, "git://") || strings.HasPrefix(str, "github.com/") || strings.HasPrefix(str, "git@github.com:") || (strings.HasSuffix(str, ".git") && IsURL(str))
}
// GetResolvConf opens and read the content of /etc/resolv.conf.