diff options
author | Florian Schmaus <flow@gentoo.org> | 2024-11-12 20:35:26 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2024-11-12 19:37:20 +0000 |
commit | ecb59f374386515647539615f9c118e8d3daafcb (patch) | |
tree | 3c12dabcb3ef19f8d1e419af9d01099c3ea08a7a | |
parent | postrecv-bugs: fix commit message and resolution when mentioned (diff) | |
download | githooks-ecb59f374386515647539615f9c118e8d3daafcb.tar.gz githooks-ecb59f374386515647539615f9c118e8d3daafcb.tar.bz2 githooks-ecb59f374386515647539615f9c118e8d3daafcb.zip |
local/update-02-gpg: include fingerprint of signing key in error messagesHEADgithooks-20241112T193720Zmaster
Signed-off-by: Florian Schmaus <flow@gentoo.org>
Signed-off-by: Sam James <sam@gentoo.org>
-rwxr-xr-x | local/update-02-gpg | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/local/update-02-gpg b/local/update-02-gpg index 3740cb4..cb71081 100755 --- a/local/update-02-gpg +++ b/local/update-02-gpg @@ -162,7 +162,9 @@ while read -r r; do exit 1 fi - signst=$(git show -q --pretty=format:'%G?' "${r}") + signinfo=( $(git show -q --pretty=format:'%G?%n%GF' "${r}") ) + signst=${signinfo[0]} + signkey=${signinfo[1]} case ${VERIFY_SIGS} in gentoo-devs) # gentoo dev signatures must be Good @@ -178,11 +180,11 @@ while read -r r; do # error reporting case ${signst} in U) - echo "*** Untrusted signature on ${r}, refusing" + echo "*** Untrusted signature ${signkey} on ${r}, refusing" exit 1 ;; B) - echo "*** Bad signature on ${r}, refusing" + echo "*** Bad signature ${signkey} on ${r}, refusing" exit 1 ;; N) |