Using python3 in commit-msg hook (Closes: #891538).
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
40b72c6c6a
commit
c6759e3393
2 changed files with 16 additions and 0 deletions
15
debian/patches/debian/0002-python3-hook.patch
vendored
Normal file
15
debian/patches/debian/0002-python3-hook.patch
vendored
Normal file
|
@ -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/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=$?
|
||||||
|
}
|
||||||
|
|
1
debian/patches/series
vendored
1
debian/patches/series
vendored
|
@ -1 +1,2 @@
|
||||||
debian/0001-fix-test-with-python3.patch
|
debian/0001-fix-test-with-python3.patch
|
||||||
|
debian/0002-python3-hook.patch
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue