diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index d834a06..9d759c7 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -91,7 +91,7 @@ endfunction 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'), "\\S\\+\n") + let s:git_versions[g:fugitive_git_executable] = matchstr(system(g:fugitive_git_executable.' --version'), "\\S\\+\\ze\n") endif return s:git_versions[g:fugitive_git_executable] endfunction