Justin Tobler
b9fadeead7
builtin/fetch: avoid aborting closed reference transaction
...
As part of the reference transaction commit phase, the transaction is
set to a closed state regardless of whether it was successful of not.
Attempting to abort a closed transaction via `ref_transaction_abort()`
results in a `BUG()`.
In c92abe71df (builtin/fetch: fix leaking transaction with `--atomic`,
2024-08-22), logic to free a transaction after the commit phase is moved
to the centralized exit path. In cases where the transaction commit
failed, this results in a closed transaction being aborted and signaling
a bug.
Free the transaction and set it to NULL when the commit fails. This
allows the exit path to correctly handle the error without attempting to
abort the transaction.
Signed-off-by: Justin Tobler <jltobler@gmail.com >
Signed-off-by: Junio C Hamano <gitster@pobox.com >
2025-03-21 03:59:46 -07:00
..
2024-09-13 14:33:30 -07:00
2024-09-23 10:35:09 -07:00
2024-09-13 14:32:24 -07:00
2024-09-13 14:32:24 -07:00
2024-09-23 10:35:09 -07:00
2024-09-23 10:35:09 -07:00
2024-09-23 10:35:09 -07:00
2024-09-23 10:35:09 -07:00
2024-09-13 14:32:24 -07:00
2024-09-23 10:35:09 -07:00
2024-09-23 10:35:09 -07:00
2024-09-13 14:32:24 -07:00
2024-09-13 14:32:24 -07:00
2024-09-23 10:35:09 -07:00
2024-09-13 14:33:30 -07:00
2024-09-13 14:32:24 -07:00
2024-09-13 14:32:24 -07:00
2024-10-10 13:09:13 -07:00
2024-09-13 14:32:24 -07:00
2024-09-13 14:32:24 -07:00
2024-09-13 14:32:24 -07:00
2024-09-23 10:35:09 -07:00
2024-09-13 14:32:24 -07:00
2024-09-23 10:35:09 -07:00
2024-10-08 23:35:45 -07:00
2024-09-23 10:35:09 -07:00
2024-09-13 14:32:24 -07:00
2024-09-13 14:33:30 -07:00
2024-09-13 14:32:24 -07:00
2024-09-13 14:32:24 -07:00
2024-09-23 10:35:09 -07:00
2024-09-13 14:33:30 -07:00
2024-09-23 10:35:09 -07:00
2024-09-23 10:35:09 -07:00
2024-09-23 10:35:09 -07:00
2024-09-23 10:35:09 -07:00
2024-10-02 07:46:26 -07:00
2024-09-13 14:32:24 -07:00
2024-09-13 14:32:24 -07:00
2024-09-25 10:24:54 -07:00
2025-03-21 03:59:46 -07:00
2024-09-23 10:35:09 -07:00
2024-09-23 10:35:09 -07:00
2024-09-13 14:32:24 -07:00
2024-09-13 14:32:24 -07:00
2024-11-20 14:42:57 +09:00
2024-11-20 14:42:58 +09:00
2024-09-13 14:33:30 -07:00
2024-09-23 10:35:09 -07:00
2024-09-13 14:32:24 -07:00
2024-10-02 07:46:26 -07:00
2024-09-13 14:32:24 -07:00
2024-09-23 10:35:09 -07:00
2024-09-23 10:35:09 -07:00
2024-09-23 10:35:09 -07:00
2024-09-23 10:35:09 -07:00
2024-09-24 10:54:39 -07:00
2024-09-13 14:32:24 -07:00
2024-09-13 14:32:24 -07:00
2024-09-13 14:32:24 -07:00
2024-09-13 14:33:30 -07:00
2024-09-13 14:32:24 -07:00
2024-09-13 14:32:24 -07:00
2024-09-13 14:32:24 -07:00
2024-09-13 14:32:24 -07:00
2024-09-13 14:32:24 -07:00
2024-09-23 10:35:09 -07:00
2024-09-23 10:35:09 -07:00
2024-09-13 14:32:24 -07:00
2024-09-13 14:32:24 -07:00
2024-09-23 10:35:09 -07:00
2024-09-13 14:32:24 -07:00
2024-09-24 10:54:39 -07:00
2024-09-23 10:35:09 -07:00
2024-09-23 10:35:09 -07:00
2024-09-13 14:32:24 -07:00
2024-09-13 14:32:24 -07:00
2024-09-23 10:35:09 -07:00
2024-09-13 14:33:30 -07:00
2024-09-23 10:35:09 -07:00
2024-10-02 07:46:26 -07:00
2024-09-25 10:24:53 -07:00
2024-09-13 14:32:24 -07:00
2024-09-13 14:32:24 -07:00
2024-09-23 10:35:09 -07:00
2024-09-25 18:24:50 -07:00
2024-09-13 14:32:24 -07:00
2024-09-13 14:32:24 -07:00
2024-09-13 14:33:30 -07:00
2024-09-13 14:33:30 -07:00
2024-09-23 10:35:09 -07:00
2024-10-02 07:46:26 -07:00
2024-09-23 10:35:09 -07:00
2024-09-13 14:32:24 -07:00
2024-09-13 14:32:24 -07:00
2024-09-23 10:35:09 -07:00
2024-09-13 14:32:24 -07:00
2024-09-23 10:35:09 -07:00
2024-09-13 14:32:24 -07:00
2024-09-13 14:32:24 -07:00
2024-09-25 10:24:53 -07:00
2024-09-13 14:32:24 -07:00
2024-09-13 14:32:24 -07:00
2024-09-13 14:32:24 -07:00
2024-09-13 14:32:24 -07:00
2024-10-02 07:46:25 -07:00
2024-09-23 10:35:09 -07:00
2024-09-13 14:32:24 -07:00
2024-10-09 10:48:08 -07:00
2024-09-13 14:32:24 -07:00
2024-09-23 10:35:09 -07:00
2024-09-13 14:32:24 -07:00
2024-09-13 14:32:24 -07:00
2024-09-23 10:35:09 -07:00
2024-09-13 14:32:24 -07:00
2024-09-13 14:32:24 -07:00
2024-09-23 10:35:09 -07:00
2024-09-13 14:33:30 -07:00
2024-09-13 14:32:24 -07:00
2024-09-13 14:32:24 -07:00
2024-09-13 14:32:24 -07:00
2024-09-23 10:35:09 -07:00
2024-09-23 10:35:09 -07:00
2024-09-23 10:35:09 -07:00