From c9829df74fc32abcc74333b594babe921e2810c8 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 19 Apr 2020 13:42:00 +0200 Subject: Using python3 in commit-msg hook (Closes: #891538). Signed-off-by: Daniel Baumann --- debian/patches/debian/0002-python3-hook.patch | 15 +++++++++++++++ debian/patches/series | 1 + 2 files changed, 16 insertions(+) create mode 100644 debian/patches/debian/0002-python3-hook.patch diff --git a/debian/patches/debian/0002-python3-hook.patch b/debian/patches/debian/0002-python3-hook.patch new file mode 100644 index 0000000..74cdcea --- /dev/null +++ b/debian/patches/debian/0002-python3-hook.patch @@ -0,0 +1,15 @@ +Author: Daniel Baumann +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 --git a/debian/patches/series b/debian/patches/series index 65e35c4..3bfdd92 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1 +1,2 @@ debian/0001-fix-test-with-python3.patch +debian/0002-python3-hook.patch -- cgit v1.2.3