VundleVim / Vundle.vim

Vundle, the plug-in manager for Vim
http://github.com/VundleVim/Vundle.Vim
MIT License
23.91k stars 2.58k forks source link

Https protocol problem #680

Open BrandonCantrell opened 8 years ago

BrandonCantrell commented 8 years ago

This is definitely unique to my environment, so please flag this as a possible future enhancement and not an issue with your code. At my work we have https inspection and provide our own CA certificate which seems to interfere with https traffic coming from github.

A workaround is to use the git:// protocol instead of https://. I have modified /autoload/vundle/config.vim in order to fix this for my environment. I'm not sure if logic could be added say "hey, we encountered an error with https, let's try git and http".

func! s:parse_name(arg) let arg = a:arg let git_proto = exists('g:vundle_default_git_proto') ? g:vundle_default_git_proto : 'git'

I just wanted to let you guys know. Below is the error output I'm seeing.

Thanks.

[2015-12-11 15:43:28] Plugin URI change detected for Plugi|~
n vim-sleuth |~
[2015-12-11 15:43:28] > Plugin vim-sleuth old URI: git://|~
github.com/tpope/vim-sleuth.git |~
[2015-12-11 15:43:28] > Plugin vim-sleuth new URI: https:|~
//github.com/tpope/vim-sleuth.git |~
[2015-12-11 15:43:28] |~
[2015-12-11 15:43:28] Plugin tpope/vim-sleuth |~
[2015-12-11 15:43:28] $ cd '/home/ggg/.vim/bundle/vi|~
m-sleuth' && git remote set-url origin 'https://github.com|~
/tpope/vim-sleuth.git' && git fetch && git reset --hard or|~
igin/HEAD && git submodule update --init --recursive |~
[2015-12-11 15:43:28] > fatal: unable to access 'https://g|~
ithub.com/tpope/vim-sleuth.git/': server certificate verif|~
ication failed. CAfile: /etc/ssl/certs/ca-certificates.crt|~
CRLfile: none

JustusPan commented 6 years ago

I met same error output and this workround is what I expected. Thank you.

madvoid commented 6 years ago

This just happened to me to and the fix worked. To be a bit more specific for future people:

  1. Find the let git_proto = line. For me it was on line 140 of ~/.vim/bundle/Vundle.vim/autoload/vundle/config.vim
  2. At the end of the line is 'https'. Replace this with 'git'
  3. Save the file and configure the plugins as normal

Just for reference and so google will pick it up, this happened on the SDSC comet cluster, which is under Xsede's umbrella. I also had to install vundle using the git:// protocol

ChaosJohn commented 6 years ago

You can also add a line before calling Vundle in .vimrc: let g:vundle_default_git_proto = 'git'. The result will be same as the way metioned by @madvoid

kiteloopdesign commented 5 years ago

@ChaosJohn solution works like a charm. Thanks so much!