From 9d5641fe6585a61894f7b7427a68c794e5efe76d Mon Sep 17 00:00:00 2001 From: godosa Date: Wed, 7 Oct 2026 07:44:16 +0200 Subject: Denylist guard at commit time (pre-commit + commit-msg hooks); drop publish_snapshot Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01JEAjUkQRrCYX5MZhWxdtj2 --- .githooks/commit-msg | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 .githooks/commit-msg (limited to '.githooks/commit-msg') diff --git a/.githooks/commit-msg b/.githooks/commit-msg new file mode 100755 index 0000000..1d0bf6f --- /dev/null +++ b/.githooks/commit-msg @@ -0,0 +1,5 @@ +#!/bin/sh +# Denylist guard (scripts/denylist_check.py): commit message. Enable: git config core.hooksPath .githooks +s="$(git rev-parse --show-toplevel)/scripts/denylist_check.py" +[ -f "$s" ] || exit 0 +exec python3 "$s" msg "$1" -- cgit