]> git.ipfire.org Git - thirdparty/git.git/commit
fetch: utilize rejected ref error details
authorKarthik Nayak <karthik.188@gmail.com>
Sun, 25 Jan 2026 22:52:39 +0000 (23:52 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 26 Jan 2026 06:27:33 +0000 (22:27 -0800)
commit274f4355527275515a2c7c5f5a1214cf57b06338
tree7e8858fb6d76a700e3ec05dcd6470f5822e0cd53
parenta366bdec0fb06a61d5c42e4047aab0658cec912e
fetch: utilize rejected ref error details

In 0e358de64a (fetch: use batched reference updates, 2025-05-19),
git-fetch(1) switched to using batched reference updates. This also
introduced a regression wherein instead of providing detailed error
messages for failed referenced updates, the users were provided generic
error messages based on the error type.

Similar to the previous commit, switch to using detailed error messages
if present for failed reference updates to fix this regression.

Reported-by: Elijah Newren <newren@gmail.com>
Co-authored-by: Jeff King <peff@peff.net>
Signed-off-by: Karthik Nayak <karthik.188@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/fetch.c
t/t5510-fetch.sh