Skip to content

Commit

Permalink
t/t7510: check the validation of the new config gpg.format
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
henning-schild authored and gitster committed Jul 18, 2018
1 parent 57a8dd7 commit 1865a64
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions t/t7510-signed-commit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 1865a64

Please sign in to comment.