diff options
| author | Aidan Hobson Sayers <aidanhs@cantab.net> | 2014-11-14 01:52:55 +0000 |
|---|---|---|
| committer | Aidan Hobson Sayers <aidanhs@cantab.net> | 2014-11-24 20:49:54 +0000 |
| commit | c7e4cc4a531b5337d64bda22df8553e646a96fe7 (patch) | |
| tree | b53383a194f5d6c7c7a1a5b13eb3dfaadced6516 /utils/utils.go | |
| parent | 748fe7a0fa8df73d89df729ce307c24ac881ae1e (diff) | |
| download | docker-c7e4cc4a531b5337d64bda22df8553e646a96fe7.tar.gz | |
Allow git@ prefixes for any hosted git service
Signed-off-by: Aidan Hobson Sayers <aidanhs@cantab.net>
Diffstat (limited to 'utils/utils.go')
| -rw-r--r-- | utils/utils.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/utils.go b/utils/utils.go index 84d01f6c9d..3f49cb72f1 100644 --- a/utils/utils.go +++ b/utils/utils.go @@ -293,7 +293,7 @@ func IsURL(str string) bool { } func IsGIT(str string) bool { - return strings.HasPrefix(str, "git://") || strings.HasPrefix(str, "github.com/") || strings.HasPrefix(str, "git@github.com:") || (strings.HasSuffix(str, ".git") && IsURL(str)) + return strings.HasPrefix(str, "git://") || strings.HasPrefix(str, "github.com/") || strings.HasPrefix(str, "git@") || (strings.HasSuffix(str, ".git") && IsURL(str)) } func ValidGitTransport(str string) bool { |
