Skip to content

armgit / herdr

Public Imported from GitHub
0

the runtime your coding agents live on

fix: select windows python command in commit hook (#1994)

JJ Liebig93547611124c
diff --git a/.githooks/commit-msg b/.githooks/commit-msg
index c8cbadc10..e7e8138ef 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