diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 09:49:11 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 09:49:11 +0000 |
commit | b2d3e731d30e77b921ce1f823cdbbfc23e81828a (patch) | |
tree | c4dd31a5d9bf77729634aa61db521c37155a0420 /debian/patches | |
parent | Adding upstream version 0.18.0. (diff) | |
download | gitlint-b2d3e731d30e77b921ce1f823cdbbfc23e81828a.tar.xz gitlint-b2d3e731d30e77b921ce1f823cdbbfc23e81828a.zip |
Adding debian version 0.18.0-2.debian/0.18.0-2debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | debian/patches/debian/0001-python3-hook.patch | 15 | ||||
-rw-r--r-- | debian/patches/series | 1 |
2 files changed, 16 insertions, 0 deletions
diff --git a/debian/patches/debian/0001-python3-hook.patch b/debian/patches/debian/0001-python3-hook.patch new file mode 100644 index 0000000..bbd6b08 --- /dev/null +++ b/debian/patches/debian/0001-python3-hook.patch @@ -0,0 +1,15 @@ +Author: Daniel Baumann <daniel.baumann@progress-linux.org> +Description: Using python3 in commit-msg hook (Closes: #891538). + +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 + diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..bc40938 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +debian/0001-python3-hook.patch |