1
0
Fork 0

Refreshing python3-hook.patch.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-02-13 06:02:13 +01:00
parent e916bee311
commit 1297a22898
Signed by: daniel
GPG key ID: FBB4F0E80A80222F

View file

@ -4,12 +4,12 @@ Description: Using python3 in commit-msg hook (Closes: #891538).
diff -Naurp gitlint.orig/gitlint/files/commit-msg gitlint/gitlint/files/commit-msg diff -Naurp gitlint.orig/gitlint/files/commit-msg gitlint/gitlint/files/commit-msg
--- gitlint.orig/gitlint/files/commit-msg --- gitlint.orig/gitlint/files/commit-msg
+++ gitlint/gitlint/files/commit-msg +++ gitlint/gitlint/files/commit-msg
@@ -26,7 +26,7 @@ fi @@ -26,7 +26,7 @@ exit_code=$?
# This is the case for Atlassian SourceTree, where $PATH deviates from the user's shell $PATH.
run_gitlint(){ if [ $exit_code -eq 127 ]; then
echo "gitlint: checking commit message..." echo "Fallback to python module execution"
- python -m gitlint.cli --staged --msg-filename "$1" - python -m gitlint.cli --staged --msg-filename "$1" run-hook
+ python3 -m gitlint.cli --staged --msg-filename "$1" + python3 -m gitlint.cli --staged --msg-filename "$1" run-hook
gitlint_exit_code=$? exit_code=$?
} fi