mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-12-06 20:24:37 +08:00
Accept Git dir as first argument to FugitiveRemoteUrl()
This commit is contained in:
@@ -1127,7 +1127,7 @@ endfunction
|
|||||||
|
|
||||||
function! fugitive#RemoteUrl(...) abort
|
function! fugitive#RemoteUrl(...) abort
|
||||||
let args = a:000
|
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 config = fugitive#Config(a:1)
|
||||||
let args = a:000[1:-1]
|
let args = a:000[1:-1]
|
||||||
elseif a:0 > 1
|
elseif a:0 > 1
|
||||||
|
|||||||
Reference in New Issue
Block a user