mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-15 23:03:51 -05:00
Allow FugitiveRemoteUrl(name, ':noresolve')
This commit is contained in:
@@ -1155,7 +1155,7 @@ function! fugitive#RemoteUrl(...) abort
|
|||||||
if type(a:1) ==# type({}) && has_key(a:1, 'remote_name') && (type(get(args, 0, 0)) !=# type('') || args[0] =~# '^:')
|
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)
|
call insert(args, a:1.remote_name)
|
||||||
endif
|
endif
|
||||||
elseif a:0 > 1
|
elseif a:0 > 1 && a:2 !~# '^:'
|
||||||
let config = fugitive#Config(a:2)
|
let config = fugitive#Config(a:2)
|
||||||
let args = [a:1] + a:000[2:-1]
|
let args = [a:1] + a:000[2:-1]
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user