From 9dcdbf16c6a0a0c9e4e85c3564d84a49824e535f Mon Sep 17 00:00:00 2001 From: gmarik Date: Sun, 3 Apr 2011 15:30:45 -0500 Subject: [PATCH] support file:// scheme and repo/.git path --- autoload/vundle/config.vim | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/autoload/vundle/config.vim b/autoload/vundle/config.vim index 770ac854..f6c080fa 100644 --- a/autoload/vundle/config.vim +++ b/autoload/vundle/config.vim @@ -45,11 +45,10 @@ func! s:parse_name(arg) let uri = 'https://github.com/'.split(arg, ':')[-1] let name = substitute(split(uri,'\/')[-1], '\.git\s*$','','i') elseif arg =~ '^\s*\(git@\|git://\)\S\+' - \ || arg =~ 'https\?://' + \ || arg =~ '(file|https\?)://' \ || arg =~ '\.git\s*$' - \ || arg =~ '\(file://\)\?[~/]' let uri = arg - let name = substitute(split(uri,'\/')[-1], '\.git\s*$','','i') + let name = split( substitute(uri,'/\?\.git\s*$','','i') ,'\/')[-1] else let name = arg let uri = 'https://github.com/vim-scripts/'.name.'.git'