mirror of
https://github.com/junegunn/vim-plug.git
synced 2024-12-23 12:36:53 -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
|
||||
|
||||
function! s:git_version_requirement(...)
|
||||
let s:git_version = get(s:, 'git_version',
|
||||
\ map(split(split(s:system('git --version'))[-1], '\.'), 'str2nr(v:val)'))
|
||||
if !exists('s:git_version')
|
||||
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)
|
||||
endfunction
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user