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

Re: [PATCH 2/2] t/t7510-signed-commit.sh: add signing subkey to Eris Discordia key

From
brian m. carlson <sandals@crustytoothpaste.net>
Date
Nov 4, 2018, 15:10 UTC
Message-ID
<20181104151013.GH731755@genre.crustytoothpaste.net>
In-Reply-To
<20181104094710.27859-2-mgorny@gentoo.org>
On Sun, Nov 04, 2018 at 10:47:10AM +0100, Michał Górny wrote:
Show 22 quoted lines
> diff --git a/t/t7510-signed-commit.sh b/t/t7510-signed-commit.sh
> index e8377286d..86d3f93fa 100755
> --- a/t/t7510-signed-commit.sh
> +++ b/t/t7510-signed-commit.sh
> @@ -197,9 +197,9 @@ test_expect_success GPG 'show bad signature with custom format' '
>  test_expect_success GPG 'show untrusted signature with custom format' '
>  	cat >expect <<-\EOF &&
>  	U
> -	61092E85B7227189
> +	65A0EEA02E30CAD7
>  	Eris Discordia <discord@example.net>
> -	D4BE22311AD3131E5EDA29A461092E85B7227189
> +	F8364A59E07FFE9F4D63005A65A0EEA02E30CAD7
>  	D4BE22311AD3131E5EDA29A461092E85B7227189
>  	EOF
>  	git log -1 --format="%G?%n%GK%n%GS%n%GF%n%GP" eighth-signed-alt >actual &&
> @@ -209,7 +209,7 @@ test_expect_success GPG 'show untrusted signature with custom format' '
>  test_expect_success GPG 'show unknown signature with custom format' '
>  	cat >expect <<-\EOF &&
>  	E
> -	61092E85B7227189
> +	65A0EEA02E30CAD7

It's my understanding that GnuPG will use the most recent subkey suitable for a particular purpose, and I think the test relies on that behavior. However, I'm not sure that's documented. Do we want to rely on that behavior or be more explicit? (This is a question, not an opinion.)

-- 
brian m. carlson: Houston, Texas, US
OpenPGP: https://keybase.io/bk2204
Previous: Michał GórnyNext: Michał Górny
Message 3 of 6 in “t/t7510-signed-commit.sh: Add %GP to custom format checks”
  1. 1/2 t/t7510-signed-commit.sh: Add %GP to custom format checksMichał Górny, Nov 4, 2018
  2. 2/2 t/t7510-signed-commit.sh: add signing subkey to Eris Discordia keyMichał Górny, Nov 4, 2018
  3. brian m. carlsonNov 4, 2018
  4. Michał GórnyNov 4, 2018
  5. Junio C HamanoNov 5, 2018
  6. Michał GórnyNov 5, 2018

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.