git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
brian m. carlson <sandals@crustytoothpaste.net>
Date
Mar 11, 2026, 21:17 UTC
Message-ID
<abHb5k4otqTSgPb8@fruit.crustytoothpaste.net>
In-Reply-To
<20260311174120.76871-1-r.siddharth.shrimali@gmail.com>
On 2026-03-11 at 17:41:20, Siddharth Shrimali wrote:
Show 12 quoted lines
> diff --git a/t/t3200-branch.sh b/t/t3200-branch.sh
> index c58e505c43..e7829c2c4b 100755
> --- a/t/t3200-branch.sh
> +++ b/t/t3200-branch.sh
> @@ -1494,7 +1494,8 @@ test_expect_success 'refuse --edit-description on unborn branch for now' '
>  '
>  
>  test_expect_success '--merged catches invalid object names' '
> -	test_must_fail git branch --merged 0000000000000000000000000000000000000000
> +	test_must_fail git branch --merged $ZERO_OID 2>err &&
> +	test_grep "must point to a commit" err
>  '

Yeah, this seems reasonable. It's failing, but for the wrong reasons, so checking the error message in addition to switching to `$ZERO_OID` seems like the right thing to do.

-- 
brian m. carlson (they/them)
Toronto, Ontario, CA
Previous: Siddharth ShrimaliNext: Patrick Steinhardt
Message 4 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.