]> git.ipfire.org Git - thirdparty/git.git/commit
t7030: stop using invalid tag name
authorJeff King <peff@peff.net>
Wed, 18 Jan 2023 20:36:22 +0000 (15:36 -0500)
committerJunio C Hamano <gitster@pobox.com>
Wed, 18 Jan 2023 20:59:44 +0000 (12:59 -0800)
commitad5dfeac040c16057a23f341408d229656e42ab4
treeefdbea0b4a2d8c192261ea9e795276cc69f44c4a
parent61cc4be7ec21f0217abacc396287ca12c68e923d
t7030: stop using invalid tag name

We intentionally invalidate the signature of a tag by switching its tag
name from "seventh" to "7th forged". However, the latter is not a valid
tag name because it contains a space. This doesn't currently affect the
test, but we're better off using something syntactically valid. That
reduces the number of possible failure modes in the test, and
future-proofs us if git hash-object gets more picky about its input.

The t7031 script, which was mostly copied from t7030, has the same
problem, so we'll fix it, too.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t7030-verify-tag.sh
t/t7031-verify-tag-signed-ssh.sh