Restore status commit lists for "." remote

Resolves: https://github.com/tpope/vim-fugitive/issues/2137
This commit is contained in:
Tim Pope
2023-03-23 07:43:11 -04:00
parent 66e8d19f89
commit 309c68117e

View File

@@ -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