From: Junio C Hamano Date: Fri, 18 Oct 2013 18:25:13 GMT Subject: Re: [PATCH 6/9] http: update base URLs when we see redirects Message-ID: In-Reply-To: <20130928083405.GA2782@sigill.intra.peff.net> Jeff King writes: > + * Our basic strategy is to compare "base" and "asked" to find the bits > + * specific to our request. We then strip those bits off of "got" to yield the > + * new base. So for example, if our base is "http://example.com/foo.git", > + * and we ask for "http://example.com/foo.git/info/refs", we might end up > + * with "https://other.example.com/foo.git/info/refs". We would want the > + * new URL to become "https://other.example.com/foo.git". Not "https://other.example.com/foo.git/info/refs"?