This is an automated email from the git hooks/post-receive script. x2go pushed a change to branch master in repository maintenancescripts. from 23e1245 git/hooks/update-script._irkerhook.py_: seriously try to fix encoding issües. new 0f43650 Revert "git/hooks/update-script._irkerhook.py_: seriously try to fix encoding issües." new 149dea6 git/hooks/update-script._irkerhook.py_: employ weird workaround to make irkerhook correctly apply data to the templäte in case of Unicode characters in the log message, author name or email address. The 2 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "adds" were already present in the repository and have only been added to this reference. Summary of changes: git/hooks/update-script._irkerhook.py_ | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) -- Alioth's /srv/git/code.x2go.org/maintenancescripts.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/maintenancescripts.git
This is an automated email from the git hooks/post-receive script. x2go pushed a commit to branch master in repository maintenancescripts. commit 0f43650a0fab4d10bb5e418c604f44aa5b7024d8 Author: X2Go Administrator <x2go-admin@ymir.das-netzwerkteam.de> Date: Tue Oct 10 06:07:36 2017 +0200 Revert "git/hooks/update-script._irkerhook.py_: seriously try to fix encoding issües." This reverts commit 23e1245c5034e2822995e8ce73b1dec01205c6cb. --- 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 b25d435..672fc95 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)).encode("utf-8").split("\n", 2) + do("git log -1 '--pretty=format:%an%n%ae%n%s%n%b' " + shellquote(commit.commit)).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
This is an automated email from the git hooks/post-receive script. x2go pushed a commit to branch master in repository maintenancescripts. commit 149dea673fd34f033a3fbdc91f92d77f17dc21f6 Author: X2Go Administratör <git-admin@x2go.org> Date: Tue Oct 10 06:09:45 2017 +0200 git/hooks/update-script._irkerhook.py_: employ weird workaround to make irkerhook correctly apply data to the templäte in case of Unicode characters in the log message, author name or email address. --- git/hooks/update-script._irkerhook.py_ | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/git/hooks/update-script._irkerhook.py_ b/git/hooks/update-script._irkerhook.py_ index 672fc95..576cadb 100755 --- a/git/hooks/update-script._irkerhook.py_ +++ b/git/hooks/update-script._irkerhook.py_ @@ -104,6 +104,14 @@ class Commit: except IOError as e: self.url = "" print "IOError: {0}:{1}".format(e.errno, e.strerror) + # Fixes a weird error if the log message, author name or email contain + # unicode characters. This shouldn't happen, since all variables (but + # self.url) are normal byte strings, correctly encoded. + # For some reason, applying the dict to the template still fails. + # It doesn't fail if logmsg et. al. are converted to unicode objects first. + self.logmsg = unicode(self.logmsg, 'utf-8') + self.author_name = unicode(self.author_name, 'utf-8') + self.mail = unicode(self.mail, 'utf-8') res = self.template % self.__dict__ return unicode(res, 'UTF-8') if not isinstance(res, unicode) else res -- Alioth's /srv/git/code.x2go.org/maintenancescripts.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/maintenancescripts.git