Accept Git dir as first argument to FugitiveRemoteUrl()

This commit is contained in:
Tim Pope
2021-08-18 12:50:23 -04:00
parent 286bf9096d
commit 9ab7ac303a

View File

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