git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Try an uppercase version of $prot_proxy env var

From
Jeff King <peff@peff.net>
Date
Apr 27, 2012, 08:12 UTC
Message-ID
<20120427081220.GC12092@sigill.intra.peff.net>
In-Reply-To
<xmqqehraa5ct.fsf@junio.mtv.corp.google.com>
On Thu, Apr 26, 2012 at 08:18:58AM -0700, Junio C Hamano wrote:
Show 6 quoted lines
> Jeff King <peff@peff.net> writes:
> 
> > Don't we explicitly not want to do this when the protocol is http? Curl
> > doesn't respect HTTP_PROXY.
> 
> Yes.  Here is what I'll queue.

I had raised several other points in my (admittedly belated) review[1]. So I was kind of expecting a re-roll rather than a patch on top. It was mostly readability issues, but there is also a potential segfault when the url has no protocol. I'm not sure it can happen in normal git use, but:

  git remote-https url-without-protocol

may dereference null (it's via snprintf, so on my system glibc magically rewrites this as "(null)_proxy", but other systems will segfault).

-Peff
[1] http://article.gmane.org/gmane.comp.version-control.git/195443
    http://article.gmane.org/gmane.comp.version-control.git/195445
Previous: Nelson Benitez LeonNext: Junio C Hamano
Message 8 of 13 in “What's cooking in git.git (Apr 2012, #09; Mon, 23)”
  1. Junio C HamanoApr 23, 2012
  2. Nelson Benitez LeonApr 24, 2012
  3. Junio C HamanoApr 24, 2012
  4. Try an uppercase version of $prot_proxy env varNelson Benitez Leon, Apr 26, 2012
  5. Jeff KingApr 26, 2012
  6. Junio C HamanoApr 26, 2012
  7. Nelson Benitez LeonApr 26, 2012
  8. Jeff KingApr 27, 2012
  9. Junio C HamanoApr 27, 2012
  10. Junio C HamanoApr 26, 2012
  11. What's cooking (incremental)Junio C Hamano, Apr 25, 2012
  12. Thomas RastApr 25, 2012
  13. Junio C HamanoApr 25, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.