From efcfa4ee84894d433fd0293bc20d8cfe1add5c8f Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Sun, 15 Feb 2015 18:39:34 +0900 Subject: [PATCH] Remove `git::@` from URI if git 2.3.0 or above is found Related: #161, #133, #109 --- plug.vim | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/plug.vim b/plug.vim index f8cba383..c1203750 100644 --- a/plug.vim +++ b/plug.vim @@ -718,6 +718,14 @@ function! s:update_impl(pull, force, args) abort return endif + if !s:is_win && s:git_version_requirement(2, 3) + let $GIT_TERMINAL_PROMPT = 0 + for plug in values(todo) + let plug.uri = substitute(plug.uri, + \ '^https://git::@github\.com', 'https://github.com', '') + endfor + endif + if !isdirectory(g:plug_home) try call mkdir(g:plug_home, 'p')