mirror of
https://github.com/junegunn/vim-plug.git
synced 2024-12-23 20:45:31 -07:00
Remove redundant checks of git --version in Neovim installer
Related: #445
This commit is contained in:
parent
c463c9fe83
commit
820cc63569
5
plug.vim
5
plug.vim
@ -288,8 +288,9 @@ function! s:version_requirement(val, min)
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:git_version_requirement(...)
|
function! s:git_version_requirement(...)
|
||||||
let s:git_version = get(s:, 'git_version',
|
if !exists('s:git_version')
|
||||||
\ map(split(split(s:system('git --version'))[-1], '\.'), 'str2nr(v:val)'))
|
let s:git_version = map(split(split(s:system('git --version'))[-1], '\.'), 'str2nr(v:val)')
|
||||||
|
endif
|
||||||
return s:version_requirement(s:git_version, a:000)
|
return s:version_requirement(s:git_version, a:000)
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user