From 058ffa406d8013ab8431b7543ae29dec72fd24e5 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Thu, 29 Jul 2021 08:24:12 -0400 Subject: [PATCH] Fix determining Git version with custom Git command Resolves: https://github.com/tpope/vim-fugitive/issues/1801 --- autoload/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 2ca5e51..cbe340d 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -321,7 +321,7 @@ let s:git_versions = {} function! fugitive#GitVersion(...) abort let git = s:GitShellCmd() if !has_key(s:git_versions, git) - let s:git_versions[git] = matchstr(s:SystemError([git, '--version'])[0], '\d[^[:space:]]\+') + let s:git_versions[git] = matchstr(s:SystemError(s:GitCmd() + ['--version'])[0], '\d[^[:space:]]\+') endif if !a:0 return s:git_versions[git]