summaryrefslogtreecommitdiff
path: root/t/t7510-signed-commit.sh
diff options
context:
space:
mode:
authorLibravatar Henning Schild <henning.schild@siemens.com>2018-07-18 11:30:10 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2018-07-18 10:02:00 -0700
commit1865a647c3d8bb6367be4b799dd95217ccfbe26e (patch)
tree9473a27de442f774c161b721a352cfeb4ae613df /t/t7510-signed-commit.sh
parentgpg-interface: add new config to select how to sign a commit (diff)
downloadtgif-1865a647c3d8bb6367be4b799dd95217ccfbe26e.tar.xz
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 <henning.schild@siemens.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t7510-signed-commit.sh')
-rwxr-xr-xt/t7510-signed-commit.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/t/t7510-signed-commit.sh b/t/t7510-signed-commit.sh
index 6e2015ed9a..4e37ff8f16 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