Fix check for wrong executable

This commit is contained in:
Tim Pope
2021-09-14 02:12:50 -04:00
parent 5f387d4783
commit 529311cec7

View File

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