Skip to content
Browse files

support file:// scheme and repo/.git path

  • Loading branch information...
1 parent c2a7b49 commit 9dcdbf16c6a0a0c9e4e85c3564d84a49824e535f @gmarik gmarik committed Apr 3, 2011
Showing with 2 additions and 3 deletions.
  1. +2 −3 autoload/vundle/config.vim
View
5 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'

0 comments on commit 9dcdbf1

Please sign in to comment.
Something went wrong with that request. Please try again.