summaryrefslogtreecommitdiff
path: root/hooks
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2022-12-07 09:52:55 -0700
committerSean Whitton <spwhitton@spwhitton.name>2022-12-07 09:53:22 -0700
commit56b9d113e8bfda7c8a1e99346d05da4c74847a48 (patch)
treebcd6c508d14c7892d8d8f586be9ccd52fd7d2567 /hooks
parentb9b15f3f18d6c8733341bcbfcfc47c8443a2ef91 (diff)
downloaddotfiles-56b9d113e8bfda7c8a1e99346d05da4c74847a48.tar.gz
factor out git-verify-commit-spw
Diffstat (limited to 'hooks')
-rwxr-xr-xhooks/git/src/dotfiles/pre-push_01gpgsign3
1 files changed, 1 insertions, 2 deletions
diff --git a/hooks/git/src/dotfiles/pre-push_01gpgsign b/hooks/git/src/dotfiles/pre-push_01gpgsign
index a3f048dc..179a4648 100755
--- a/hooks/git/src/dotfiles/pre-push_01gpgsign
+++ b/hooks/git/src/dotfiles/pre-push_01gpgsign
@@ -11,8 +11,7 @@ while read local_ref local_sha remote_ref remote_sha; do
:
else
if [ "$remote_ref" = "refs/heads/master" ]; then
- if git verify-commit-by-fp \
- 8DC2487E51ABDD90B5C4753F0F56D0553B6D411B "$local_sha"
+ if git verify-commit-spw "$local_sha"
then
echo "Proposed new master has been signed by Sean"
else