When this project switched away from requests, support for configuring a proxy via the HTTP_PROXY/HTTPS_PROXY environment variables was lost. This change restores proxy support by adding the global-agent package as a dependency and setting it up in the download script before attempting to download Git.
By default, global-agent only looks for environment variables prefixed by GLOBAL_AGENT_ (e.g. GLOBAL_AGENT_HTTP_PROXY). To maintain backward compatibility, the download script checks for the old HTTP_PROXY/HTTPS_PROXY variables, and copies them to the GLOBAL_AGENT_ equivalent if not already defined.
When this project switched away from
requests
, support for configuring a proxy via theHTTP_PROXY
/HTTPS_PROXY
environment variables was lost. This change restores proxy support by adding theglobal-agent
package as a dependency and setting it up in the download script before attempting to download Git.By default,
global-agent
only looks for environment variables prefixed byGLOBAL_AGENT_
(e.g.GLOBAL_AGENT_HTTP_PROXY
). To maintain backward compatibility, the download script checks for the oldHTTP_PROXY
/HTTPS_PROXY
variables, and copies them to theGLOBAL_AGENT_
equivalent if not already defined.Fixes #498