Vundle.vim: Https protocol problem

Created on 11 Dec 2015  路  4Comments  路  Source: VundleVim/Vundle.vim

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

Most helpful comment

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

All 4 comments

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

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

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

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Dbz picture Dbz  路  6Comments

PeterBocan picture PeterBocan  路  4Comments

unode picture unode  路  5Comments

binarykitchen picture binarykitchen  路  3Comments

thetutlage picture thetutlage  路  7Comments