Skip to content

Commit

Permalink
Remove git::@ from URI if git 2.3.0 or above is found
Browse files Browse the repository at this point in the history
Related: #161, #133, #109
  • Loading branch information
junegunn committed Feb 15, 2015
1 parent 54fc8a4 commit efcfa4e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions plug.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit efcfa4e

Please sign in to comment.