summaryrefslogtreecommitdiff
path: root/t/t7510-signed-commit.sh
diff options
context:
space:
mode:
authorHenning Schild <henning.schild@siemens.com>2018-07-18 09:30:10 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-07-18 17:02:00 (GMT)
commit1865a647c3d8bb6367be4b799dd95217ccfbe26e (patch)
tree9473a27de442f774c161b721a352cfeb4ae613df /t/t7510-signed-commit.sh
parent57a8dd75df4e1d716d60fc95bd0acaab45465d68 (diff)
downloadgit-1865a647c3d8bb6367be4b799dd95217ccfbe26e.zip
git-1865a647c3d8bb6367be4b799dd95217ccfbe26e.tar.gz
git-1865a647c3d8bb6367be4b799dd95217ccfbe26e.tar.bz2
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 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