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>

Henning Schild committed Jul 18, 2018 at 11:30 UTC 1865a647c3d8bb6367be4b799dd95217ccfbe26e
1 file changed +7
t/t7510-signed-commit.sh
+7
@@ -227,4 +227,11 @@ test_expect_success GPG 'log.showsignature behaves like --show-signature' '
227 grep "gpg: Good signature" actual
228 '
229
230 +test_expect_success GPG 'check config gpg.format values' '
231 + test_config gpg.format openpgp &&
232 + git commit -S --amend -m "success" &&
233 + test_config gpg.format OpEnPgP &&
234 + test_must_fail git commit -S --amend -m "fail"
235 +'
236 +
237 test_done