Compare commits

...

Author SHA1 Message Date
  gmarik dcce72fbf9 update test/vimrc with proto default 13 years ago
  gmarik 247c09e426 introduce g:vundle_default_git_proto option 13 years ago
2 changed files with 4 additions and 2 deletions
Split View
  1. +3
    -2
      autoload/vundle/config.vim
  2. +1
    -0
      test/vimrc

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

@ -40,10 +40,11 @@ endf
func! s:parse_name(arg)
let arg = a:arg
let git_proto = exists('g:vundle_default_git_proto') ? g:vundle_default_git_proto : 'http'
if arg =~? '^\s*\(gh\|github\):\S\+'
\ || arg =~? '^[a-z0-9][a-z0-9-]*/[^/]\+$'
let uri = 'https://github.com/'.split(arg, ':')[-1]
let uri = git_proto.'://github.com/'.split(arg, ':')[-1]
if uri !~? '\.git$'
let uri .= '.git'
endif
@ -55,7 +56,7 @@ func! s:parse_name(arg)
let name = split( substitute(uri,'/\?\.git\s*$','','i') ,'\/')[-1]
else
let name = arg
let uri = 'https://github.com/vim-scripts/'.name.'.git'
let uri = git_proto.'://github.com/vim-scripts/'.name.'.git'
endif
return {'name': name, 'uri': uri, 'name_spec': arg }
endf


+ 1
- 0
test/vimrc View File

@ -17,6 +17,7 @@ runtime macros/matchit.vim
exec 'set rtp+='.root.'/vundle'
call vundle#rc(root)
" let g:vundle_default_git_proto = 'git'
Bundle "gmarik/vundle"


Loading…
Cancel
Save