mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-09 12:03: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)
|
elseif !fugitive#GitVersion(1, 8, 5)
|
||||||
return 'return ' . string('echoerr "fugitive: Git 1.8.5 or newer required"')
|
return 'return ' . string('echoerr "fugitive: Git 1.8.5 or newer required"')
|
||||||
else
|
else
|
||||||
|
if exists('b:git_dir') && empty(b:git_dir)
|
||||||
|
unlet! b:git_dir
|
||||||
|
endif
|
||||||
return ''
|
return ''
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|||||||
Reference in New Issue
Block a user