Skip to content

Commit efcfa4e

Browse files
committed
Remove git::@ from URI if git 2.3.0 or above is found
Related: #161, #133, #109
1 parent 54fc8a4 commit efcfa4e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

plug.vim

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -718,6 +718,14 @@ function! s:update_impl(pull, force, args) abort
718718
return
719719
endif
720720

721+
if !s:is_win && s:git_version_requirement(2, 3)
722+
let $GIT_TERMINAL_PROMPT = 0
723+
for plug in values(todo)
724+
let plug.uri = substitute(plug.uri,
725+
\ '^https://git::@github\.com', 'https://github.com', '')
726+
endfor
727+
endif
728+
721729
if !isdirectory(g:plug_home)
722730
try
723731
call mkdir(g:plug_home, 'p')

0 commit comments

Comments
 (0)