Re: [PATCH 2/2] http: add an "auto" mode for http.emptyauth
- From
Jeff King <peff@peff.net>
- Date
- Feb 23, 2017, 01:37 UTC
- Message-ID
- <20170223013746.lturqad7lnehedb4@sigill.intra.peff.net>
- In-Reply-To
- <b5778a7988ad4dfa9adfc8d312432189@exmbdft7.ad.twosigma.com>
On Thu, Feb 23, 2017 at 01:16:33AM +0000, David Turner wrote:
> I don't know enough about how libcurl handles authentication to know whether > these patches are a good idea, but I have a minor comment anyway.
As somebody who is using non-Basic auth, can you apply these patches and show us the output of:
GIT_TRACE_CURL=1 \ git ls-remote https://your-server 2>&1 >/dev/null | egrep '(Send|Recv) header: (GET|HTTP|Auth)'
(without http.emptyauth turned on, obviously).
Show 9 quoted lines
> > + * But only do so when this is _not_ our initial > > + * request, as we would not then yet know what > > + * methods are available. > > + */ > > Eliminate double-negative: > > "But only do this when this is our second or subsequent request, > as by then we know what methods are available."
Yeah, that is clearer.
-Peff