From: Ravi Mistry Date: Tue, 03 Nov 2026 19:05:56 GMT Subject: Re: [PATCH 1/4] http: fix retry count and Retry-After timing Message-ID: In-Reply-To: Junio C Hamano writes: > > - /* If retries are disabled and we got a 429, fail immediately */ > > - if (ret == HTTP_RATE_LIMITED && !http_max_retries) > > - return HTTP_ERROR; > > - > > I am not sure I get this removal. If it is because the change to > the next hunk (the condition to loop with the while statement) > already covers it, I guess it makes sense, because we never enter > the while() loop and we will return HTTP_ERROR more or less the same > way as the above if http_max_retries is false. Yes, and moving that check to after the while() loop also handles the case where the initial request returns 401 and the re-authenticated request inside the loop returns 429 when http.maxRetries is 0, without falsely logging "retries-exhausted". I clarified this in the commit message in v2. Thanks!