Skip to content

refs/files-backend: fix two subtle error-handling bugs

Jeff King git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2refs/files-backend: handle packed transaction prepare failurerefs/files-backend.c t/t1404-update-ref-errors.sh+26 -02 replies
2/2refs/files-backend: don't look at an aborted transactionrefs/files-backend.c+5 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] refs/files-backend: fix two subtle error-handling bugs

This series fixes two bugs around the error-handling of writing packed-refs during ref deletion. The first one came from a real-world case. The second is impossible to trigger (currently), but since I noticed it while hunting the first one, I figured it was worth fixing.

[1/2]: refs/files-backend: handle packed transaction prepare failure [2/2]: refs/files-backend: don't look at an aborted transaction

 refs/files-backend.c         | 16 +++++++++++++++-
 t/t1404-update-ref-errors.sh | 16 ++++++++++++++++
 2 files changed, 31 insertions(+), 1 deletion(-)

-Peff