summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2019-11-07 08:15:21 -0700
committerSean Whitton <spwhitton@spwhitton.name>2019-11-07 08:16:18 -0700
commit543fe7dbe0ec867ba7194ea240d594f2f67d462a (patch)
treef8c885442bc11ca1bce9d98bc480415796534f22 /lib
parentf2f301911114e19c91b7772e5ce8ac0ed14c614f (diff)
downloaddotfiles-543fe7dbe0ec867ba7194ea240d594f2f67d462a.tar.gz
dotfiles pre-push hook: use git-verify-commit-by-fp
Diffstat (limited to 'lib')
-rwxr-xr-xlib/hooks/dotfiles-pre-push4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/hooks/dotfiles-pre-push b/lib/hooks/dotfiles-pre-push
index 8be6199e..a3f048dc 100755
--- a/lib/hooks/dotfiles-pre-push
+++ b/lib/hooks/dotfiles-pre-push
@@ -11,8 +11,8 @@ while read local_ref local_sha remote_ref remote_sha; do
:
else
if [ "$remote_ref" = "refs/heads/master" ]; then
- if git verify-commit --raw "$local_sha" 2>&1 \
- | grep "VALIDSIG .* 8DC2487E51ABDD90B5C4753F0F56D0553B6D411B"
+ if git verify-commit-by-fp \
+ 8DC2487E51ABDD90B5C4753F0F56D0553B6D411B "$local_sha"
then
echo "Proposed new master has been signed by Sean"
else