All of lore.kernel.org
 help / color / mirror / Atom feed
From: Nelson Benitez Leon <nelsonjesus.benitez@seap.minhap.es>
To: Junio C Hamano <gitster@pobox.com>
Cc: git@vger.kernel.org
Subject: [PATCH] Try an uppercase version of $prot_proxy env var
Date: Thu, 26 Apr 2012 15:16:51 +0200	[thread overview]
Message-ID: <4F994AC3.2070708@seap.minhap.es> (raw)
In-Reply-To: <xmqqipgpgdpl.fsf@junio.mtv.corp.google.com>


Try an uppercase version of $prot_proxy env var when thelowercase version 
is not found.

Signed-off-by: Nelson Benitez Leon <nbenitezl@gmail.com>
---
This is for pu branch where http-proxy-more is located.

 http.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/http.c b/http.c
index 6a98195..bf9c20e 100644
--- a/http.c
+++ b/http.c
@@ -329,6 +329,13 @@ static CURL *get_curl_handle(const char *url)
 		strbuf_addf(&buf, "%s_proxy", cre_url.protocol);
 		env_proxy_var = strbuf_detach(&buf, NULL);
 		env_proxy = getenv(env_proxy_var);
+		if (!env_proxy) {
+			char *p;
+			for (p = env_proxy_var; *p; p++) {
+				*p = toupper(*p);
+			}
+			env_proxy = getenv(env_proxy_var);
+		}
 		if (env_proxy) {
 			read_http_proxy = 1;
 			no_proxy = getenv("no_proxy");
-- 
1.7.7.6

  reply	other threads:[~2012-04-26 12:21 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-23 22:04 What's cooking in git.git (Apr 2012, #09; Mon, 23) Junio C Hamano
2012-04-24  9:14 ` Nelson Benitez Leon
2012-04-24 18:57   ` Junio C Hamano
2012-04-26 13:16     ` Nelson Benitez Leon [this message]
2012-04-26 13:08       ` [PATCH] Try an uppercase version of $prot_proxy env var Jeff King
2012-04-26 15:18         ` Junio C Hamano
2012-04-26 16:29           ` Nelson Benitez Leon
2012-04-27  8:12           ` Jeff King
2012-04-27 15:03             ` Junio C Hamano
2012-04-26 14:04       ` Junio C Hamano
2012-04-25  2:14 ` What's cooking (incremental) Junio C Hamano
2012-04-25  9:06   ` Thomas Rast
2012-04-25 15:17     ` Junio C Hamano

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4F994AC3.2070708@seap.minhap.es \
    --to=nelsonjesus.benitez@seap.minhap.es \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.