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:
Steven Humphrey
2021-09-28 12:11:41 +01:00
committed by Tim Pope
parent 7b05afd548
commit 1213953abf

View File

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