mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-08 11:33:47 -05:00
Expire cached blank Git dir on active Fugitive invocation
Resolves: https://github.com/tpope/vim-fugitive/issues/2213
This commit is contained in:
@@ -116,6 +116,9 @@ function! s:VersionCheck() abort
|
||||
elseif !fugitive#GitVersion(1, 8, 5)
|
||||
return 'return ' . string('echoerr "fugitive: Git 1.8.5 or newer required"')
|
||||
else
|
||||
if exists('b:git_dir') && empty(b:git_dir)
|
||||
unlet! b:git_dir
|
||||
endif
|
||||
return ''
|
||||
endif
|
||||
endfunction
|
||||
|
||||
Reference in New Issue
Block a user