mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-13 13:53:51 -05:00
Fix default remote in fugitive#RemoteUrl
A previous refactor resulted in fugitive#RemoteUrl() with no arguments returning the string 'origin' instead of git@github.com....
This commit is contained in:
committed by
Tim Pope
parent
7b05afd548
commit
1213953abf
@@ -1342,7 +1342,8 @@ function! fugitive#RemoteUrl(...) abort
|
||||
let config = fugitive#Config(dir_or_config)
|
||||
if url =~# '^\.\=$'
|
||||
let url = s:RemoteDefault(config)
|
||||
elseif url ==# '.git'
|
||||
endif
|
||||
if url ==# '.git'
|
||||
let url = s:GitDir(config)
|
||||
elseif url !~# ':\|^/\|^\.\.\=/'
|
||||
let url = FugitiveConfigGet('remote.' . url . '.url', config)
|
||||
|
||||
Reference in New Issue
Block a user