motiejus/dotfiles

Unnamed repository; edit this file 'description' to name the repository.
git clone https://git.jakstys.lt/motiejus/dotfiles.git
Log | Tree | Refs | README | LICENSE

commit 64133cae30e662bf9995c6d1bfbbdaea4ab23553 (tree)
parent 9b31f4bee5e393838a070a650f0523368fb17410
Author: Tim Pope <code@tpope.net>
Date:   Tue, 17 Aug 2021 20:26:52 -0400

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.

Diffstat:
Mautoload/fugitive.vim | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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