From 309c68117eca3a95349093012e5886a184c1812d Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Thu, 23 Mar 2023 07:43:11 -0400 Subject: [PATCH] Restore status commit lists for "." remote Resolves: https://github.com/tpope/vim-fugitive/issues/2137 --- autoload/fugitive.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 10eb3fc..572484a 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -2806,10 +2806,10 @@ function! fugitive#BufReadStatus(...) abort let fetch_remote = config.Get('branch.' . branch . '.remote', 'origin') let push_remote = config.Get('branch.' . branch . '.pushRemote', \ config.Get('remote.pushDefault', fetch_remote)) - if empty(config.Get('remote.' . fetch_remote . '.fetch')) + if fetch_remote !=# '.' && empty(config.Get('remote.' . fetch_remote . '.fetch')) let fetch_remote = '' endif - if empty(config.Get('remote.' . push_remote . '.push', config.Get('remote.' . push_remote . '.fetch'))) + if push_remote !=# '.' && empty(config.Get('remote.' . push_remote . '.push', config.Get('remote.' . push_remote . '.fetch'))) let push_remote = '' endif