mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-15 14:53:51 -05:00
Avoid unnecessary -C when querying Git config
Let's keep this low level operation away from any wonkiness caused by a missing or bad core.worktree.
This commit is contained in:
@@ -869,7 +869,7 @@ function! fugitive#Config(...) abort
|
|||||||
else
|
else
|
||||||
let dict = copy(s:config_prototype)
|
let dict = copy(s:config_prototype)
|
||||||
let dict.git_dir = dir
|
let dict.git_dir = dir
|
||||||
let [lines, message, exec_error] = s:NullError([dir, 'config', '--list', '-z'])
|
let [lines, message, exec_error] = s:NullError([dir, 'config', '--list', '-z', '--'])
|
||||||
if exec_error
|
if exec_error
|
||||||
return {}
|
return {}
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user