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

Re: [PATCH] t7004: check existence of correct tag

From
Jeff King <peff@peff.net>
Date
Nov 14, 2019, 06:35 UTC
Message-ID
<20191114063511.GE10643@sigill.intra.peff.net>
In-Reply-To
<20191113193902.29263-1-martin.agren@gmail.com>
On Wed, Nov 13, 2019 at 08:39:02PM +0100, Martin Ågren wrote:
> We try to delete the non-existing tag "anothertag", but for the
> verifications, we check that the tag "myhead" doesn't exist. "myhead"
> isn't used in this test except for this checking. Comparing to the test
> two tests earlier, it looks like a copy-paste mistake.
Thanks, the description and patch look good to me.
> Perhaps it's overkill to check that `git tag -d` didn't decide to
> *create* a tag. But since we're trying to be this careful, let's
> actually check the correct tag. While we're doing this, let's use a more
> descriptive tag name instead -- "nonexistingtag" should be obvious.
Yes, that would be a spectacular bug indeed. :)

I think it's fine to keep it in, though, as it communicates the expectations pretty clearly.

-Peff
Previous: Martin Ågren
Message 2 of 2 in “t7004: check existence of correct tag”
  1. t7004: check existence of correct tagMartin Ågren, Nov 13, 2019
  2. Jeff KingNov 14, 2019

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.