The charm should honor the Juju proxy settings when executing git-sync.
Juju lets you set some proxy configuration which ends up in the environment variables named JUJU_CHARM_HTTP_PROXY, JUJU_CHARM_HTTPS_PROXY, and JUJU_CHARM_NO_PROXY.
However, the charms don't automatically honor this configuration; instead, they require to set some other environment variables for the proxy configuration to take effect, namely http_proxy, https_proxy, and no_proxy. It's up to each individual charm to honor the Juju proxy settings or not.
This PR makes the change for the git-sync command :)
Issue
Closes #71.
Solution
The charm should honor the Juju proxy settings when executing
git-sync
.Juju lets you set some proxy configuration which ends up in the environment variables named
JUJU_CHARM_HTTP_PROXY
,JUJU_CHARM_HTTPS_PROXY
, andJUJU_CHARM_NO_PROXY
.However, the charms don't automatically honor this configuration; instead, they require to set some other environment variables for the proxy configuration to take effect, namely
http_proxy
,https_proxy
, andno_proxy
. It's up to each individual charm to honor the Juju proxy settings or not.This PR makes the change for the git-sync command :)