mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-12 21:33:53 -05:00
Don't default to origin remote in bare repos
Resolves: https://github.com/tpope/vim-fugitive/issues/2129
This commit is contained in:
@@ -2804,7 +2804,7 @@ function! fugitive#BufReadStatus(...) abort
|
||||
endfor
|
||||
|
||||
let fetch_remote = FugitiveConfigGet('branch.' . branch . '.remote', config)
|
||||
if empty(fetch_remote) && !empty(FugitiveConfigGet('remote.origin.url', config))
|
||||
if empty(fetch_remote) && !empty(s:Tree()) && !empty(FugitiveConfigGet('remote.origin.url', config))
|
||||
let fetch_remote = 'origin'
|
||||
endif
|
||||
let push_remote = FugitiveConfigGet('branch.' . branch . '.pushRemote', config)
|
||||
|
||||
Reference in New Issue
Block a user