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

Re: [PATCH] hooks/update: Add a hooks.denyunsignedtags option

From
Junio C Hamano <gitster@pobox.com>
Date
Dec 21, 2015, 18:52 UTC
Message-ID
<xmqqpoxzfxdb.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<xmqq37uvhdpw.fsf@gitster.mtv.corp.google.com>
Junio C Hamano <gitster@pobox.com> writes:
Show 19 quoted lines
> Use of "cat-file -p" is a bad manner in scripts, as we reserve the
> right to change what "-p" output looks like purely on human
> usability.  "cat-file tag", perhaps?
>
> Also,
>
> 	$ git grep ' PGP '
>
> in our source tells me that we use a bit tighter pattern even when
> we are casually trying to see if the thing looks like a PGP signed
> payload.
>
> 	if test "$allowunsigned" = "true" ||
>            git cat-file "$newrev" |
>            grep -q '^-----BEGIN PGP SIGNATURE-----$'
> 	then
> 		...
>
> or something?

I think an intelligent reader would have understood what I meant, but the 'cat-file' in the above needs to say what type of thing it is asking to dump, i.e.

 	if test "$allowunsigned" = "true" ||
            git cat-file tag "$newrev" |
            grep -q '^-----BEGIN PGP SIGNATURE-----$'
 	then
Sorry for the noise.
Previous: Junio C HamanoNext: Eric Sunshine
Message 3 of 4 in “hooks/update: Add a hooks.denyunsignedtags option”
  1. hooks/update: Add a hooks.denyunsignedtags optionJulian Andres Klode, Dec 21, 2015
  2. Junio C HamanoDec 21, 2015
  3. Junio C HamanoDec 21, 2015
  4. Eric SunshineDec 21, 2015

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.