mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-10 12:33:46 -05:00
Restore status commit lists for "." remote
Resolves: https://github.com/tpope/vim-fugitive/issues/2137
This commit is contained in:
@@ -2806,10 +2806,10 @@ function! fugitive#BufReadStatus(...) abort
|
|||||||
let fetch_remote = config.Get('branch.' . branch . '.remote', 'origin')
|
let fetch_remote = config.Get('branch.' . branch . '.remote', 'origin')
|
||||||
let push_remote = config.Get('branch.' . branch . '.pushRemote',
|
let push_remote = config.Get('branch.' . branch . '.pushRemote',
|
||||||
\ config.Get('remote.pushDefault', fetch_remote))
|
\ 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 = ''
|
let fetch_remote = ''
|
||||||
endif
|
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 = ''
|
let push_remote = ''
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user