summaryrefslogtreecommitdiffstats
path: root/debian/patches/debian/0001-python3-hook.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/debian/0001-python3-hook.patch')
-rw-r--r--debian/patches/debian/0001-python3-hook.patch22
1 files changed, 11 insertions, 11 deletions
diff --git a/debian/patches/debian/0001-python3-hook.patch b/debian/patches/debian/0001-python3-hook.patch
index 74cdcea..bbd6b08 100644
--- a/debian/patches/debian/0001-python3-hook.patch
+++ b/debian/patches/debian/0001-python3-hook.patch
@@ -1,15 +1,15 @@
Author: Daniel Baumann <daniel.baumann@progress-linux.org>
Description: Using python3 in commit-msg hook (Closes: #891538).
-diff -Naurp gitlint.orig/gitlint/files/commit-msg gitlint/gitlint/files/commit-msg
---- gitlint.orig/gitlint/files/commit-msg
-+++ gitlint/gitlint/files/commit-msg
-@@ -26,7 +26,7 @@ fi
-
- run_gitlint(){
- echo "gitlint: checking commit message..."
-- python -m gitlint.cli --staged --msg-filename "$1"
-+ python3 -m gitlint.cli --staged --msg-filename "$1"
- gitlint_exit_code=$?
- }
+diff -Naurp gitlint.orig/gitlint-core/gitlint/files/commit-msg gitlint/gitlint-core/gitlint/files/commit-msg
+--- gitlint.orig/gitlint-core/gitlint/files/commit-msg
++++ gitlint/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