git/list[1] front-page[2] threads[3] people[4] search[5] about
wed 2026-10-07 17:24 UTC

Re: [PATCH v2] t3200: replace hardcoded null OID with $ZERO_OID

From
Patrick Steinhardt <ps@pks.im>
Date
Mar 12, 2026, 06:07 UTC
Message-ID
<abJYHmKiXqiXjHhN@pks.im>
In-Reply-To
<20260311174120.76871-1-r.siddharth.shrimali@gmail.com>
On Wed, Mar 11, 2026 at 11:11:20PM +0530, Siddharth Shrimali wrote:
Show 12 quoted lines
> To support the SHA-256 transition, replace the hardcoded 40-zero string
> in 'git branch --merged' with '$ZERO_OID'. The current 40-character
> string causes the test to fail prematurely in SHA-256 environments
> because Git identifies a "malformed object name" (due to the 40 vs 64
> character mismatch) before it even validates the object type.
> 
> By using '$ZERO_OID', we ensure the hash length is always correct for
> the active algorithm. Additionally, use 'test_grep' to verify the
> "must point to a commit" error message, ensuring the test validates
> the object type logic rather than just string syntax.
> 
> Suggested-by: Patrick Steinhardt <ps@pks.im>

"Suggested-by" is a bit strong, as it indicates that I have suggested to work on this in the first place. "Helped-by" would have been a bit of a better fit.

No reason to reroll though, this patch looks good to me. Thanks!
Patrick
Previous: brian m. carlson
Message 5 of 5 in “t3200: replace hardcoded null OID with $ZERO_OID”
  1. t3200: replace hardcoded null OID with $ZERO_OIDSiddharth Shrimali, Mar 11, 2026
  2. Patrick SteinhardtMar 11, 2026
  3. t3200: replace hardcoded null OID with $ZERO_OIDSiddharth Shrimali, Mar 11, 2026
  4. brian m. carlsonMar 11, 2026
  5. Patrick SteinhardtMar 12, 2026

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.