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

Re: [PATCH 2/2] t3301: test proper exit response to no-value notes.displayRef.

From
Junio C Hamano <gitster@pobox.com>
Date
Nov 23, 2020, 18:44 UTC
Message-ID
<xmqqr1ojoqvi.fsf@gitster.c.googlers.com>
In-Reply-To
<20201123032342.24566-3-nate@roosteregg.cc>
nate@roosteregg.cc writes:
Show 19 quoted lines
> From: Nate Avers <nate@roosteregg.cc>
>
> Signed-off-by: Nate Avers <nate@roosteregg.cc>
> ---
>  t/t3301-notes.sh | 5 +++++
>  1 file changed, 5 insertions(+)
>
> diff --git a/t/t3301-notes.sh b/t/t3301-notes.sh
> index 8f43303007..ca60faf480 100755
> --- a/t/t3301-notes.sh
> +++ b/t/t3301-notes.sh
> @@ -672,6 +672,11 @@ test_expect_success 'notes.displayRef respects order' '
>  	test_cmp expect-both-reversed actual
>  '
>  
> +test_expect_success 'notes.displayRef with no value handled gracefully' '
> +	test_must_fail git -c notes.displayRef log -0 --notes &&
> +	test_must_fail git -c notes.displayRef diff-tree --notes HEAD
> +'

Looks good. I didn't know we can feed the "no assignment means true" configuration from the command line with "git -c" ;-)

>  test_expect_success 'GIT_NOTES_DISPLAY_REF works' '
>  	GIT_NOTES_DISPLAY_REF=refs/notes/commits:refs/notes/other \
>  		git log -2 >actual &&
Previous: nate@roosteregg.cc
Message 5 of 5 in “Fix a segfault in git log --notes”
  1. 0/2 Fix a segfault in git log --notesnate@roosteregg.cc, Nov 23, 2020
  2. 1/2 notes.c: fix a segfault in notes_display_config()nate@roosteregg.cc, Nov 23, 2020
  3. Junio C HamanoNov 23, 2020
  4. 2/2 t3301: test proper exit response to no-value notes.displayRef.nate@roosteregg.cc, Nov 23, 2020
  5. Junio C HamanoNov 23, 2020

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.