[X2Go-Commits] [maintenancescripts] 01/01: git/hooks/update-script._irkerhook.py_: seriously try to fix encoding issües.

git-admin at x2go.org git-admin at x2go.org
Tue Oct 10 03:22:13 CEST 2017


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch master
in repository maintenancescripts.

commit 23e1245c5034e2822995e8ce73b1dec01205c6cb
Author: X2Go Git Administratör <git-admin at x2go.org>
Date:   Tue Oct 10 03:21:40 2017 +0200

    git/hooks/update-script._irkerhook.py_: seriously try to fix encoding issües.
---
 git/hooks/update-script._irkerhook.py_ | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/git/hooks/update-script._irkerhook.py_ b/git/hooks/update-script._irkerhook.py_
index 672fc95..b25d435 100755
--- a/git/hooks/update-script._irkerhook.py_
+++ b/git/hooks/update-script._irkerhook.py_
@@ -309,7 +309,7 @@ class GitExtractor(GenericExtractor):
         # conventionally supposed to be a summary of the commit.  Under
         # other VCSes a different choice may be appropriate.
         commit.author_name, commit.mail, commit.logmsg = \
-            do("git log -1 '--pretty=format:%an%n%ae%n%s%n%b' " + shellquote(commit.commit)).split("\n", 2)
+            do("git log -1 '--pretty=format:%an%n%ae%n%s%n%b' " + shellquote(commit.commit)).encode("utf-8").split("\n", 2)
         # Discard empty lines
         tmp = [line for line in commit.logmsg.split("\n") if line.strip()]
 

--
Alioth's /srv/git/code.x2go.org/maintenancescripts.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/maintenancescripts.git


More information about the x2go-commits mailing list