Re: [BUG] reference-transaction reports zero OIDs for branch and tag deletion
- From
D. Ben Knoble <ben.knoble@gmail.com>
- Date
- Sep 19, 2026, 14:59 UTC
- Message-ID
- <CALnO6CBUr3=Cj57ikytiPxU-1hZkYu1Z3fRPydhFLqJHprbDew@mail.gmail.com>
- In-Reply-To
- <CACQ=SRGTTdQ+dHXhN6F52dBv5KxZBRfk_Em2fvmEmGJDoB6oTg@mail.gmail.com>
On Sat, Sep 19, 2026 at 9:34 AM Maciej Ciemborowicz <maciej.ciemborowicz@gmail.com> wrote:
> > Since Git 2.31, the reference-transaction hook receives all-zero old and > new object IDs when a branch or tag is deleted with a high-level command.
[snip]
> Was this loss of information intentional? If not, could the previous > object ID be restored for these deletion paths? If it is intentional, > the documentation may need to clarify that high-level deletion commands > can provide a zero-to-zero record.
Since you seem to have identified a "good" and "bad" version with a reproduction script, I suspect "git bisect" is a good way to answer your questions about intent.
-- D. Ben Knoble