diff options
author | Junio C Hamano <gitster@pobox.com> | 2014-07-16 11:32:57 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-07-16 11:32:57 -0700 |
commit | 5e40e41f1c51581d8cd8f3816de49934fec784fc (patch) | |
tree | bea2660dd0a39a0470494a31f805474e6510f7bc /t | |
parent | efbef3f6e3a8c32f4f8bc78667733228ed76a713 (diff) | |
parent | cf3983d1ff861657c8813feb7df82a74a29d06bc (diff) | |
download | git-5e40e41f1c51581d8cd8f3816de49934fec784fc.tar.gz git-5e40e41f1c51581d8cd8f3816de49934fec784fc.tar.xz |
Merge branch 'zk/log-graph-showsig'
The "--show-signature" option did not pay much attention to
"--graph".
* zk/log-graph-showsig:
log: fix indentation for --graph --show-signature
Diffstat (limited to 't')
-rwxr-xr-x | t/t4202-log.sh | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/t/t4202-log.sh b/t/t4202-log.sh index cb03d2876..99ab7ca21 100755 --- a/t/t4202-log.sh +++ b/t/t4202-log.sh @@ -3,6 +3,7 @@ test_description='git log' . ./test-lib.sh +. "$TEST_DIRECTORY/lib-gpg.sh" test_expect_success setup ' @@ -841,4 +842,34 @@ test_expect_success 'dotdot is a parent directory' ' test_cmp expect actual ' +test_expect_success GPG 'log --graph --show-signature' ' + test_when_finished "git reset --hard && git checkout master" && + git checkout -b signed master && + echo foo >foo && + git add foo && + git commit -S -m signed_commit && + git log --graph --show-signature -n1 signed >actual && + grep "^| gpg: Signature made" actual && + grep "^| gpg: Good signature" actual +' + +test_expect_success GPG 'log --graph --show-signature for merged tag' ' + test_when_finished "git reset --hard && git checkout master" && + git checkout -b plain master && + echo aaa >bar && + git add bar && + git commit -m bar_commit && + git checkout -b tagged master && + echo bbb >baz && + git add baz && + git commit -m baz_commit && + git tag -s -m signed_tag_msg signed_tag && + git checkout plain && + git merge --no-ff -m msg signed_tag && + git log --graph --show-signature -n1 plain >actual && + grep "^|\\\ merged tag" actual && + grep "^| | gpg: Signature made" actual && + grep "^| | gpg: Good signature" actual +' + test_done |