commit e3b1af604ceb1cef8525be8ceb4f030ff09fe361 (tree) parent c9d6c83470e7a3f847b62c2fdffd21e7181f9ca3 Author: Tim Pope <code@tpope.net> Date: Tue, 17 Jul 2018 01:42:37 -0400 Work around bad b:git_dir from ftplugin/git.vim Diffstat:
| M | plugin/fugitive.vim | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim @@ -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')