From 1eeeb41f3f4268b6aaf6f6a3eecd55f33780a811 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Sat, 6 Aug 2011 17:05:46 -0400 Subject: [PATCH] Work around git.vim's broken b:git_dir --- plugin/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index 17d52fc..b3cd92d 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -128,7 +128,7 @@ function! s:ExtractGitDir(path) abort endfunction function! s:Detect(path) - if exists('b:git_dir') && b:git_dir ==# '' + if exists('b:git_dir') && (b:git_dir ==# '' || b:git_dir =~# '/$') unlet b:git_dir endif if !exists('b:git_dir')