From 9ab7ac303acedb30d050e5b506d6f3c32f16cbc7 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Wed, 18 Aug 2021 12:50:23 -0400 Subject: [PATCH] Accept Git dir as first argument to FugitiveRemoteUrl() --- autoload/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 2988279..888a386 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -1127,7 +1127,7 @@ endfunction function! fugitive#RemoteUrl(...) abort let args = a:000 - if a:0 && type(a:1) !=# type('') + if a:0 && (type(a:1) !=# type('') || a:1 =~# '^/\|^\a:[\\/]' && get(a:, 2, '') !~# '^/\|^\a:[\\/]') let config = fugitive#Config(a:1) let args = a:000[1:-1] elseif a:0 > 1