Remove git::@
from URI if git 2.3.0 or above is found
Related: #161, #133, #109
This commit is contained in:
parent
54fc8a4fc7
commit
7fec10e088
1 changed files with 13 additions and 0 deletions
13
plug.vim
13
plug.vim
|
@ -718,6 +718,15 @@ function! s:update_impl(pull, force, args) abort
|
||||||
return
|
return
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if !s:is_win && s:git_version_requirement(2, 3)
|
||||||
|
let git_terminal_prompt = exists('$GIT_TERMINAL_PROMPT') ? $GIT_TERMINAL_PROMPT : ''
|
||||||
|
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)
|
if !isdirectory(g:plug_home)
|
||||||
try
|
try
|
||||||
call mkdir(g:plug_home, 'p')
|
call mkdir(g:plug_home, 'p')
|
||||||
|
@ -774,6 +783,10 @@ function! s:update_impl(pull, force, args) abort
|
||||||
else
|
else
|
||||||
call s:update_vim()
|
call s:update_vim()
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if exists('git_terminal_prompt')
|
||||||
|
let $GIT_TERMINAL_PROMPT = git_terminal_prompt
|
||||||
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:update_finish()
|
function! s:update_finish()
|
||||||
|
|
Loading…
Reference in a new issue