From 1213953abf5351a15d6aab0a02d1d8c2e5828f19 Mon Sep 17 00:00:00 2001 From: Steven Humphrey Date: Tue, 28 Sep 2021 12:11:41 +0100 Subject: [PATCH] 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.... --- autoload/fugitive.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 2486eeb..1213af0 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -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)