mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-13 13:53:51 -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
|
endfor
|
||||||
|
|
||||||
let fetch_remote = FugitiveConfigGet('branch.' . branch . '.remote', config)
|
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'
|
let fetch_remote = 'origin'
|
||||||
endif
|
endif
|
||||||
let push_remote = FugitiveConfigGet('branch.' . branch . '.pushRemote', config)
|
let push_remote = FugitiveConfigGet('branch.' . branch . '.pushRemote', config)
|
||||||
|
|||||||
Reference in New Issue
Block a user