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:
Tim Pope
2021-08-17 20:26:52 -04:00
parent 9b31f4bee5
commit 64133cae30

View File

@@ -869,7 +869,7 @@ function! fugitive#Config(...) abort
else
let dict = copy(s:config_prototype)
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
return {}
endif