support short github uris
- ie, like this Bundle 'gmarik/vundle'
This commit is contained in:
parent
bf5e062927
commit
5ce63c7de1
@ -39,7 +39,8 @@ endf
|
|||||||
|
|
||||||
func! s:parse_name(arg)
|
func! s:parse_name(arg)
|
||||||
let arg = a:arg
|
let arg = a:arg
|
||||||
if arg =~ '^\s*\(gh\|github\):\S\+'
|
if arg =~ '^\s*\(gh\|github\):\S\+'
|
||||||
|
\ || arg =~ '^\w\+/[^/]\+$'
|
||||||
let uri = 'https://github.com/'.split(arg, ':')[-1]
|
let uri = 'https://github.com/'.split(arg, ':')[-1]
|
||||||
let name = substitute(split(uri,'\/')[-1], '\.git\s*$','','i')
|
let name = substitute(split(uri,'\/')[-1], '\.git\s*$','','i')
|
||||||
elseif arg =~ '^\s*\(git@\|git://\)\S\+'
|
elseif arg =~ '^\s*\(git@\|git://\)\S\+'
|
||||||
|
Loading…
Reference in New Issue
Block a user