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

Re: [PATCH] t7004: test that "git-tag -u" implies "-s"

From
Jeff King <peff@peff.net>
Date
Dec 11, 2007, 05:22 UTC
Message-ID
<20071211052257.GA350@coredump.intra.peff.net>
In-Reply-To
<7v63z5j16g.fsf@gitster.siamese.dyndns.org>
On Mon, Dec 10, 2007 at 08:38:31PM -0800, Junio C Hamano wrote:
Show 8 quoted lines
> +get_tag_header implied-sign $commit commit $time >expect
> +echo 'Another signed tag' >>expect
> +echo '-----BEGIN PGP SIGNATURE-----' >>expect
> +test_expect_success '-u implies signed tag' '
> +	git-tag -u CDDE430D -m "Another signed tag" implied-sign &&
> +	get_tag_msg implied-sign >actual &&
> +	git diff expect actual
> +'

One thing that my original did test but this version doesn't: not only does -u imply -s, but -u implies -s which implies -a. IOW, using "-u" will put you in an editor (and a poorly done fix might have gotten this wrong, but apparently Linus is a super-genius).

Your other two tests look good.
-Peff
Previous: Junio C Hamano
Message 4 of 4 in “"git tag -u keyname" broken”
  1. Linus TorvaldsDec 11, 2007
  2. t7004: test that "git-tag -u" implies "-s"Jeff King, Dec 11, 2007
  3. Junio C HamanoDec 11, 2007
  4. Jeff KingDec 11, 2007

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.