mirror of
https://github.com/tpope/vim-fugitive.git
synced 2026-10-02 00:13:51 +08:00
Fix FugitiveExtractGitDir() with dict argument
Resolves: https://github.com/tpope/vim-fugitive/issues/2018
This commit is contained in:
1 parent
80cd9c876e
commit
33a7cdf213
1 file changed
+1
-1
+1
-1
@@ -422,7 +422,7 @@ endfunction
|
||||
|
||||
function! FugitiveExtractGitDir(path) abort
|
||||
if type(a:path) ==# type({})
|
||||
return get(a:1, 'fugitive_dir', get(a:1, 'git_dir', ''))
|
||||
return get(a:path, 'fugitive_dir', get(a:path, 'git_dir', ''))
|
||||
elseif type(a:path) == type(0)
|
||||
let path = s:Slash(a:path > 0 ? bufname(a:path) : bufname(''))
|
||||
else
|
||||
|
||||
Reference in new issue
Block a user