Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
t7510: test a commit signed by an unknown key
author
Jeff King
<peff@peff.net>
Tue, 17 Jun 2014 00:05:54 +0000
(20:05 -0400)
committer
Junio C Hamano
<gitster@pobox.com>
Tue, 17 Jun 2014 20:41:28 +0000
(13:41 -0700)
We tested both good and bad signatures, but not ones made
correctly but with a key for which we have no trust.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t7510-signed-commit.sh
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
7b1732c
)
diff --git
a/t/t7510-signed-commit.sh
b/t/t7510-signed-commit.sh
index cdffcbdc33d3239e7fd93deeb0929fe38168f4c5..04fc2c5c2ee35d18c6a654ec89ae8aa99216a6b6 100755
(executable)
--- a/
t/t7510-signed-commit.sh
+++ b/
t/t7510-signed-commit.sh
@@
-43,6
+43,9
@@
test_expect_success GPG 'create signed commits' '
test_tick && git rebase -f HEAD^^ && git tag sixth-signed HEAD^ &&
git tag seventh-signed
test_tick && git rebase -f HEAD^^ && git tag sixth-signed HEAD^ &&
git tag seventh-signed
+
+ echo 8 >file && test_tick && git commit -a -m eighth -SB7227189 &&
+ git tag eighth-signed-alt
'
test_expect_success GPG 'show signatures' '
'
test_expect_success GPG 'show signatures' '
@@
-63,6
+66,16
@@
test_expect_success GPG 'show signatures' '
! grep "BAD signature from" actual &&
echo $commit OK || exit 1
done
! grep "BAD signature from" actual &&
echo $commit OK || exit 1
done
+ ) &&
+ (
+ for commit in eighth-signed-alt
+ do
+ git show --pretty=short --show-signature $commit >actual &&
+ grep "Good signature from" actual &&
+ ! grep "BAD signature from" actual &&
+ grep "not certified" actual &&
+ echo $commit OK || exit 1
+ done
)
'
)
'