commit 5f387d4783c1cbf147ef3e23334a325bbd83ae13 (tree)
parent 5be8263f16d204a1df71984da746b3eb843e1541
Author: Tim Pope <code@tpope.net>
Date: Tue, 14 Sep 2021 00:06:58 -0400
Fix FugitiveRemoteUrl('origin', FugitiveConfig())
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim
@@ -1273,7 +1273,7 @@ function! fugitive#RemoteUrl(...) abort
if type(a:1) ==# type({}) && has_key(a:1, 'remote_name') && (type(get(args, 0, 0)) !=# type('') || args[0] =~# '^:')
call insert(args, a:1.remote_name)
endif
- elseif a:0 > 1 && a:2 !~# '^:'
+ elseif a:0 > 1 && type(a:2) ==# type({}) || (type(a:2) ==# type('') && a:2 !~# '^:')
let config = fugitive#Config(a:2)
let args = [a:1] + a:000[2:-1]
else