mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-16 23:33:43 -05:00
Fix check for wrong executable
This commit is contained in:
@@ -1222,7 +1222,7 @@ let s:remote_headers = {}
|
|||||||
|
|
||||||
function! fugitive#RemoteHttpHeaders(remote) abort
|
function! fugitive#RemoteHttpHeaders(remote) abort
|
||||||
let remote = type(a:remote) ==# type({}) ? get(a:remote, 'remote', '') : a:remote
|
let remote = type(a:remote) ==# type({}) ? get(a:remote, 'remote', '') : a:remote
|
||||||
if type(remote) !=# type('') || remote !~# '^https\=://.' || !s:executable('cremote')
|
if type(remote) !=# type('') || remote !~# '^https\=://.' || !s:executable('curl')
|
||||||
return {}
|
return {}
|
||||||
endif
|
endif
|
||||||
if !has_key(s:remote_headers, remote)
|
if !has_key(s:remote_headers, remote)
|
||||||
|
|||||||
Reference in New Issue
Block a user