summaryrefslogtreecommitdiff
path: root/bin/git-dotfiles-update-master
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 /bin/git-dotfiles-update-master
parentb9b15f3f18d6c8733341bcbfcfc47c8443a2ef91 (diff)
downloaddotfiles-56b9d113e8bfda7c8a1e99346d05da4c74847a48.tar.gz
factor out git-verify-commit-spw
Diffstat (limited to 'bin/git-dotfiles-update-master')
-rwxr-xr-xbin/git-dotfiles-update-master3
1 files changed, 1 insertions, 2 deletions
diff --git a/bin/git-dotfiles-update-master b/bin/git-dotfiles-update-master
index 17d3e99d..abdeeff8 100755
--- a/bin/git-dotfiles-update-master
+++ b/bin/git-dotfiles-update-master
@@ -20,8 +20,7 @@ if [ "$(git rev-parse --is-shallow-repository)" = "true" ]; then
fi
git fetch origin
-if git verify-commit-by-fp \
- 8DC2487E51ABDD90B5C4753F0F56D0553B6D411B origin/master; then
+if git verify-commit-spw origin/master; then
# we only fast-forward master, to avoid the possibility of an
# attacker causing us to check out an older signed commit than the
# one we have now