Work around bad b:git_dir from ftplugin/git.vim
This commit is contained in:
parent
c9d6c83470
commit
e3b1af604c
@ -110,7 +110,7 @@ function! FugitiveExtractGitDir(path) abort
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! FugitiveDetect(path) abort
|
function! FugitiveDetect(path) abort
|
||||||
if exists('b:git_dir') && (b:git_dir ==# '' || b:git_dir =~# '/$')
|
if exists('b:git_dir') && b:git_dir =~# '^$\|/$\|^fugitive:'
|
||||||
unlet b:git_dir
|
unlet b:git_dir
|
||||||
endif
|
endif
|
||||||
if !exists('b:git_dir')
|
if !exists('b:git_dir')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user