update plug.vim: url of fastgit

This commit is contained in:
jue_w 2022-03-22 09:37:33 +00:00
parent fede19a098
commit 2691413a70

View File

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