Work around bad b:git_dir from ftplugin/git.vim

This commit is contained in:
Tim Pope 2018-07-17 01:42:37 -04:00
parent c9d6c83470
commit e3b1af604c

View File

@ -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')