diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index a34ad16..dacf9c2 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -201,7 +201,7 @@ endfunction let s:git_versions = {} function! fugitive#GitVersion(...) abort if !has_key(s:git_versions, g:fugitive_git_executable) - let s:git_versions[g:fugitive_git_executable] = matchstr(system(g:fugitive_git_executable.' --version'), '\d\S\+') + let s:git_versions[g:fugitive_git_executable] = matchstr(system(g:fugitive_git_executable.' --version'), '\d[^[:space:]]\+') endif if !a:0 return s:git_versions[g:fugitive_git_executable]