diff options
author | Junio C Hamano <gitster@pobox.com> | 2021-08-24 15:32:37 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-08-24 15:32:37 -0700 |
commit | bda891e6647538693d6cec5d3085f1508fbb5f5f (patch) | |
tree | 70992fb2e373ecd84fb5923b76c44aa83aeba532 /t/t7030-verify-tag.sh | |
parent | Merge branch 'ab/pack-stdin-packs-fix' (diff) | |
parent | ref-filter: add %(rest) atom (diff) | |
download | tgif-bda891e6647538693d6cec5d3085f1508fbb5f5f.tar.xz |
Merge branch 'zh/ref-filter-raw-data'
Prepare the "ref-filter" machinery that drives the "--format"
option of "git for-each-ref" and its friends to be used in "git
cat-file --batch".
* zh/ref-filter-raw-data:
ref-filter: add %(rest) atom
ref-filter: use non-const ref_format in *_atom_parser()
ref-filter: --format=%(raw) support --perl
ref-filter: add %(raw) atom
ref-filter: add obj-type check in grab contents
Diffstat (limited to 't/t7030-verify-tag.sh')
-rwxr-xr-x | t/t7030-verify-tag.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/t/t7030-verify-tag.sh b/t/t7030-verify-tag.sh index 3cefde9602..10faa64515 100755 --- a/t/t7030-verify-tag.sh +++ b/t/t7030-verify-tag.sh @@ -194,6 +194,10 @@ test_expect_success GPG 'verifying tag with --format' ' test_cmp expect actual ' +test_expect_success GPG 'verifying tag with --format="%(rest)" must fail' ' + test_must_fail git verify-tag --format="%(rest)" "fourth-signed" +' + test_expect_success GPG 'verifying a forged tag with --format should fail silently' ' test_must_fail git verify-tag --format="tagname : %(tag)" $(cat forged1.tag) >actual-forged && test_must_be_empty actual-forged |