[X2Go-Commits] [maintenancescripts] 01/01: git/hooks/x2go-post-receive-{close-bugs, tag-pending}: switch to Python 3.6.
git-admin at x2go.org
git-admin at x2go.org
Sun Dec 1 04:59:30 CET 2019
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch master
in repository maintenancescripts.
commit 121db6504c4cdd9cf9d63338ad2a6ead919f2742
Author: Mihai Moldovan <ionic at ionic.de>
Date: Sun Dec 1 04:59:24 2019 +0100
git/hooks/x2go-post-receive-{close-bugs,tag-pending}: switch to Python 3.6.
---
git/hooks/x2go-post-receive-close-bugs | 2 +-
git/hooks/x2go-post-receive-tag-pending | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/git/hooks/x2go-post-receive-close-bugs b/git/hooks/x2go-post-receive-close-bugs
index cab5dbf..59b8a33 100755
--- a/git/hooks/x2go-post-receive-close-bugs
+++ b/git/hooks/x2go-post-receive-close-bugs
@@ -39,7 +39,7 @@ function send_mail () { # send_mail bugno revno diff_file
#local from="$(git show -s --pretty='format:%cn <%ce>' "$(git rev-parse --verify "${newrev}^{commit}")" |
# perl -CI -MEncode -e 'print Encode::encode("MIME-Q", <STDIN>)')"
local realname="$(git show -s --pretty='format:%cn' "$(git rev-parse --verify "${newrev}^{commit}")" |
- python3.5 -c 'from email.header import Header; import fileinput;[print(Header(line, "utf-8").encode()) for line in fileinput.input()]')"
+ python3.6 -c 'from email.header import Header; import fileinput;[print(Header(line, "utf-8").encode()) for line in fileinput.input()]')"
local address="$(git show -s --pretty='format:%cn <%ce>' "$(git rev-parse --verify "${newrev}^{commit}")")"
local from="${realname} ${address}"
(cat <<EOF
diff --git a/git/hooks/x2go-post-receive-tag-pending b/git/hooks/x2go-post-receive-tag-pending
index 1875367..2938f94 100755
--- a/git/hooks/x2go-post-receive-tag-pending
+++ b/git/hooks/x2go-post-receive-tag-pending
@@ -38,7 +38,7 @@ function send_mail () { # send_mail bugno revno diff_file
#local from="$(git show -s --pretty='format:%cn <%ce>' "${rev}" |
# perl -CI -MEncode -e 'print Encode::encode("MIME-Q", <STDIN>)')"
local realname="$(git show -s --pretty='format:%cn' "${rev}" |
- python3.5 -c 'from email.header import Header; import fileinput;[print(Header(line, "UTF-8").encode()) for line in fileinput.input()]')"
+ python3.6 -c 'from email.header import Header; import fileinput;[print(Header(line, "UTF-8").encode()) for line in fileinput.input()]')"
local address="$(git show -s --pretty='format:<%ce>' "${rev}")"
local from="${realname} ${address}"
(cat <<EOF
--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/maintenancescripts.git
More information about the x2go-commits
mailing list