mirror of
https://github.com/tpope/vim-fugitive.git
synced 2026-10-03 00:43:53 +08:00
Work around bad b:git_dir from ftplugin/git.vim
This commit is contained in:
1 parent
c9d6c83470
commit
e3b1af604c
1 file changed
+1
-1
+1
-1
@@ -110,7 +110,7 @@ function! FugitiveExtractGitDir(path) abort
|
||||
endfunction
|
||||
|
||||
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
|
||||
endif
|
||||
if !exists('b:git_dir')
|
||||
|
||||
Reference in new issue
Block a user