mirror of
https://github.com/tpope/vim-fugitive.git
synced 2026-10-13 16:39:02 +08:00
Work around git.vim's broken b:git_dir
This commit is contained in:
1 parent
201bdd0eff
commit
1eeeb41f3f
1 file changed
+1
-1
+1
-1
@@ -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