From 93547611124c7ff165075eb7c41ea85833394911 Mon Sep 17 00:00:00 2001 From: JJ Liebig Date: Wed, 29 Jul 2026 00:22:07 +0200 Subject: fix: select windows python command in commit hook (#1994) --- .githooks/commit-msg | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to '.githooks/commit-msg') 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 -- cgit v1.2.3