Browse Source

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

pull/25/merge 0.7.1
gmarik 15 years ago
parent
commit
9dcdbf16c6
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      autoload/vundle/config.vim

+ 2
- 3
autoload/vundle/config.vim View File

@ -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'


Loading…
Cancel
Save