From ab273e8a791b1aa70bc12069b4555e568f078531 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 18 Jan 2025 09:28:07 +0100 Subject: [PATCH] Using python3 in commit-msg hook. Signed-off-by: Daniel Baumann --- gitlint-core/gitlint/files/commit-msg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitlint-core/gitlint/files/commit-msg b/gitlint-core/gitlint/files/commit-msg index e754e8d6..209c57f2 100644 --- a/gitlint-core/gitlint/files/commit-msg +++ b/gitlint-core/gitlint/files/commit-msg @@ -26,7 +26,7 @@ exit_code=$? # This is the case for Atlassian SourceTree, where $PATH deviates from the user's shell $PATH. if [ $exit_code -eq 127 ]; then echo "Fallback to python module execution" - python -m gitlint.cli --staged --msg-filename "$1" run-hook + python3 -m gitlint.cli --staged --msg-filename "$1" run-hook exit_code=$? fi