From 8f38888fade778a72091f1c89f094dcd67c4bac9 Mon Sep 17 00:00:00 2001 From: midchildan Date: Thu, 3 Nov 2016 22:38:45 +0900 Subject: [PATCH] Fix git version detection. --- plug.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plug.vim b/plug.vim index 4a1a57b..7945e8d 100644 --- a/plug.vim +++ b/plug.vim @@ -312,7 +312,7 @@ endfunction function! s:git_version_requirement(...) if !exists('s:git_version') - let 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'))[2], '\.'), 'str2nr(v:val)') endif return s:version_requirement(s:git_version, a:000) endfunction