mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 15:27:13 +03:00
httprepo: ignore environment proxies when proxies are disabled
This commit is contained in:
parent
24f4be0cb4
commit
14709cb72b
@ -230,6 +230,9 @@ class httprepository(remoterepository):
|
||||
# "http_proxy.always" config is for running tests on localhost
|
||||
if (not ui.configbool("http_proxy", "always") and
|
||||
host.lower() in no_list):
|
||||
# avoid auto-detection of proxy settings by appending
|
||||
# a ProxyHandler with no proxies defined.
|
||||
handlers.append(urllib2.ProxyHandler({}))
|
||||
ui.debug(_('disabling proxy for %s\n') % host)
|
||||
else:
|
||||
proxyurl = urlparse.urlunsplit((
|
||||
|
Loading…
Reference in New Issue
Block a user