diff --git a/git_config.py b/git_config.py index 19c19f19..289a5b64 100644 --- a/git_config.py +++ b/git_config.py @@ -563,6 +563,12 @@ class Remote(object): self._review_port = info[2] else: try: + if 'http_proxy' in os.environ: + proxy_url = os.environ['http_proxy'] + proxy_support = urllib2.ProxyHandler({"http" : proxy_url, "https" : proxy_url}) + opener = urllib2.build_opener(proxy_support) + urllib2.install_opener(opener) + info = urlopen(u).read() if info == 'NOT_AVAILABLE': raise UploadError('%s: SSH disabled' % self.review)