]> git.ipfire.org Git - thirdparty/git.git/commit
http: extract http_reauth_prepare() from retry paths
authorMatthew John Cheetham <mjcheetham@outlook.com>
Thu, 16 Apr 2026 09:20:57 +0000 (09:20 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 16 Apr 2026 16:15:17 +0000 (09:15 -0700)
commita8faa7a56033486c576b6386798dca4591e163eb
treec68e7d4c8a3df7eb16fc14f09404d5170d29c6d6
parentf65aba1e87db64413b6d1ed5ae5a45b5a84a0997
http: extract http_reauth_prepare() from retry paths

All three HTTP retry paths (http_request_recoverable, post_rpc,
probe_rpc) call credential_fill() directly when handling
HTTP_REAUTH. Extract this into a helper function so that a
subsequent commit can add pre-fill logic (such as attempting
empty-auth before prompting) in one place.

No functional change.

Signed-off-by: Matthew John Cheetham <mjcheetham@outlook.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
http.c
http.h
remote-curl.c