diff options
author | 2018-07-11 07:29:04 +0200 | |
---|---|---|
committer | 2019-04-09 13:05:55 +0200 | |
commit | 4e58ccac4c54abb5311b40919b465b7a7442d281 (patch) | |
tree | 7f92e5c81d1a9f84e5d648f2aea32a1b74bd3b50 | |
parent | postrecv-bugs: Fix spurious '}' in comments (diff) | |
download | githooks-4e58ccac4c54abb5311b40919b465b7a7442d281.tar.gz githooks-4e58ccac4c54abb5311b40919b465b7a7442d281.tar.bz2 githooks-4e58ccac4c54abb5311b40919b465b7a7442d281.zip |
update-02-gpg: Enforce @gentoo.org committer addresses
-rwxr-xr-x | local/update-02-gpg | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/local/update-02-gpg b/local/update-02-gpg index e4c8a0c..3e0cc7b 100755 --- a/local/update-02-gpg +++ b/local/update-02-gpg @@ -32,6 +32,12 @@ case ${refname} in # (further branches of merges can be unsigned) revs=$(git rev-list --first-parent "${newrev}" "^${oldrev}") for r in ${revs}; do + committer=$(git show -q --pretty=format:'%ce' "${r}") + if [[ ${committer} != *@gentoo.org ]]; then + echo "*** Committer address is not @gentoo.org, refusing" + exit 1 + fi + signst=$(git show -q --pretty=format:'%G?' "${r}") case ${signst} in G) |