Failed to connect to github.com port 443: Timeout

This commit is contained in:
Jiang Jianshan 2021-03-20 21:42:34 +08:00
parent cffcfe150b
commit b8e86feca1

View File

@ -769,7 +769,7 @@ function! s:infer_properties(name, repo)
if repo !~ '/'
throw printf('Invalid argument: %s (implicit `vim-scripts'' expansion is deprecated)', repo)
endif
let fmt = get(g:, 'plug_url_format', 'https://git::@github.com/%s.git')
let fmt = get(g:, 'plug_url_format', 'https://git::@hub.fastgit.org/%s.git')
let uri = printf(fmt, repo)
endif
return { 'dir': s:dirpath(g:plug_home.'/'.a:name), 'uri': uri }
@ -1165,7 +1165,7 @@ function! s:update_impl(pull, force, args) abort
let $GIT_TERMINAL_PROMPT = 0
for plug in values(todo)
let plug.uri = substitute(plug.uri,
\ '^https://git::@github\.com', 'https://github.com', '')
\ '^https://git::@hub.fastgit\.org', 'https://hub.fastgit.org', '')
endfor
endif