https is a default proto
- as `http` one just redirects to `https` on GitHub
This commit is contained in:
parent
ecb6773c94
commit
f6ce31fa38
@ -41,7 +41,7 @@ endf
|
|||||||
|
|
||||||
func! s:parse_name(arg)
|
func! s:parse_name(arg)
|
||||||
let arg = a:arg
|
let arg = a:arg
|
||||||
let git_proto = exists('g:vundle_default_git_proto') ? g:vundle_default_git_proto : 'http'
|
let git_proto = exists('g:vundle_default_git_proto') ? g:vundle_default_git_proto : 'https'
|
||||||
|
|
||||||
if arg =~? '^\s*\(gh\|github\):\S\+'
|
if arg =~? '^\s*\(gh\|github\):\S\+'
|
||||||
\ || arg =~? '^[a-z0-9][a-z0-9-]*/[^/]\+$'
|
\ || arg =~? '^[a-z0-9][a-z0-9-]*/[^/]\+$'
|
||||||
|
Loading…
Reference in New Issue
Block a user