Re: [PATCH v5 3/3] t5510: cover upstream info update on fetch failure
- From
Patrick Steinhardt <ps@pks.im>
- Date
- Oct 28, 2026, 11:42 UTC
- Message-ID
- <auHfoVfHQJ-dRwkM@pks.im>
- In-Reply-To
- <20261028-799-shallow-fetch-with-tags-v5-3-7c43cc9ae810@gmail.com>
On Wed, Oct 28, 2026 at 10:48:01AM +0100, Karthik Nayak wrote:
Show 8 quoted lines
> git-fetch(1) performs reference updates in a single batched transaction, > so individual updates can be rejected while the rest succeed. Even in > that partial-failure case the command still performs the remainder of > its work, such as writing the upstream tracking configuration and > backfilling tags. > > We have no test asserting that the upstream tracking information is > written when one of the reference updates is rejected. Add one.
Very pedantic nit: I would have ordered this commit before the preceding one to demonstrate that this already worked beforehand.
Patrick