mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-10 20:43: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
|
endfunction
|
||||||
|
|
||||||
function! s:Detect(path)
|
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
|
unlet b:git_dir
|
||||||
endif
|
endif
|
||||||
if !exists('b:git_dir')
|
if !exists('b:git_dir')
|
||||||
|
|||||||
Reference in New Issue
Block a user