t7004: check existence of correct tag
commitb018719927689edc7aaf27ba047b7482271f23f0
authorMartin Ågren <martin.agren@gmail.com>
Wed, 13 Nov 2019 19:39:02 +0000 (13 20:39 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 14 Nov 2019 02:21:41 +0000 (14 11:21 +0900)
tree85c5624e59d4d081f8ad1815ed89c0d3e056fe1a
parent5fa0f5238b0cd46cfe7f6fa76c3f526ea98148d9
t7004: check existence of correct tag

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.

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.

Signed-off-by: Martin Ågren <martin.agren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t7004-tag.sh