mirror of
https://github.com/clearlinux/docker.git
synced 2026-10-03 23:38:24 +00:00
Merge pull request #4364 from vieux/move_clone
move git clone from daemon to client
This commit is contained in:
+1
-1
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user