From 1865a647c3d8bb6367be4b799dd95217ccfbe26e Mon Sep 17 00:00:00 2001 From: Henning Schild Date: Wed, 18 Jul 2018 11:30:10 +0200 Subject: t/t7510: check the validation of the new config gpg.format Test setting gpg.format to both invalid and valid values. Signed-off-by: Henning Schild Signed-off-by: Junio C Hamano diff --git a/t/t7510-signed-commit.sh b/t/t7510-signed-commit.sh index 6e2015e..4e37ff8 100755 --- a/t/t7510-signed-commit.sh +++ b/t/t7510-signed-commit.sh @@ -227,4 +227,11 @@ test_expect_success GPG 'log.showsignature behaves like --show-signature' ' grep "gpg: Good signature" actual ' +test_expect_success GPG 'check config gpg.format values' ' + test_config gpg.format openpgp && + git commit -S --amend -m "success" && + test_config gpg.format OpEnPgP && + test_must_fail git commit -S --amend -m "fail" +' + test_done -- cgit v0.10.2-6-g49f6