From 64133cae30e662bf9995c6d1bfbbdaea4ab23553 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Tue, 17 Aug 2021 20:26:52 -0400 Subject: [PATCH] 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. --- autoload/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 8db0a70..be95fc9 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -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