Work around git.vim's broken b:git_dir

This commit is contained in:
Tim Pope
2011-08-06 17:05:46 -04:00
parent 201bdd0eff
commit 1eeeb41f3f

View File

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