mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-16 07:13:52 -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
|
||||
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 {}
|
||||
endif
|
||||
if !has_key(s:remote_headers, remote)
|
||||
|
||||
Reference in New Issue
Block a user