Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions plug.vim
Original file line number Diff line number Diff line change
Expand Up @@ -718,6 +718,15 @@ function! s:update_impl(pull, force, args) abort
return
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)
try
call mkdir(g:plug_home, 'p')
Expand Down Expand Up @@ -774,6 +783,10 @@ function! s:update_impl(pull, force, args) abort
else
call s:update_vim()
endif

if exists('git_terminal_prompt')
let $GIT_TERMINAL_PROMPT = git_terminal_prompt
endif
endfunction

function! s:update_finish()
Expand Down