aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2021-10-21 21:10:05 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2021-10-21 21:48:02 -0700
commit0911eb342b4a355b14b08d2e3371769241393124 (patch)
tree8e619bd3429e791600d1ab47ba4318a1a97b8d83
parentlocal/update-*: Check for unreachable commits also in other hooks (diff)
downloadgithooks-0911eb342b4a355b14b08d2e3371769241393124.tar.gz
githooks-0911eb342b4a355b14b08d2e3371769241393124.tar.bz2
githooks-0911eb342b4a355b14b08d2e3371769241393124.zip
local/require-signed-push: clarify that the clock offset is in the push, not the commits
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
-rwxr-xr-xlocal/require-signed-push6
1 files changed, 3 insertions, 3 deletions
diff --git a/local/require-signed-push b/local/require-signed-push
index 68b03a8..f9dd405 100755
--- a/local/require-signed-push
+++ b/local/require-signed-push
@@ -54,7 +54,7 @@ log_git_push() {
logger -t require-signed-push -p info "require-signed-push${s}"
}
-verify_committer_clock() {
+verify_pusher_clock() {
RAW_CERT="$(git show --format='pushtime %ct%nct %ct%nat %at%n%B' "$GIT_PUSH_CERT")"
# Example inputs
# Good clock (58 seconds delay on PIN entry to smartcard):
@@ -189,8 +189,8 @@ case $GIT_PUSH_CERT_STATUS in
esac
-# Check the user clock as well.
-verify_committer_clock
+# Check the clock on pusher system as well.
+verify_pusher_clock
# All good now
exit 0