From e3b1af604ceb1cef8525be8ceb4f030ff09fe361 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Tue, 17 Jul 2018 01:42:37 -0400 Subject: [PATCH] Work around bad b:git_dir from ftplugin/git.vim --- plugin/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index 4abb3ac..a916c9e 100644 --- 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')