aboutsummaryrefslogtreecommitdiff
path: root/.githooks
diff options
context:
space:
mode:
authorJJ Liebig <jonathan.liebig@gmail.com>2026-07-29 00:22:07 +0200
committerGitHub <noreply@github.com>2026-07-29 01:22:07 +0300
commit93547611124c7ff165075eb7c41ea85833394911 (patch)
tree2fb5f70fe157eb0ebe84eb863ac489179b0a4c7c /.githooks
parent6a0ba226154c97ffd71015b2c10bafdd7f0c9460 (diff)
fix: select windows python command in commit hook (#1994)
Diffstat (limited to '.githooks')
-rwxr-xr-x.githooks/commit-msg6
1 files changed, 5 insertions, 1 deletions
diff --git a/.githooks/commit-msg b/.githooks/commit-msg
index c8cbadc1..e7e8138e 100755
--- a/.githooks/commit-msg
+++ b/.githooks/commit-msg
@@ -4,4 +4,8 @@ set -euo pipefail
repo_root="$(git rev-parse --show-toplevel)"
cd "$repo_root"
-python3 scripts/conventional_commits.py --message-file "$1"
+if [[ "${OS:-}" == "Windows_NT" ]]; then
+ python scripts/conventional_commits.py --message-file "$1"
+else
+ python3 scripts/conventional_commits.py --message-file "$1"
+fi