mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-10 12:33:46 -05:00
Work around git.vim's broken b:git_dir
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user