This is an automated email from the git hooks/post-receive script. x2go pushed a change to branch master in repository maintenancescripts. from f3af016 git/hooks/update-script._irkerhook.py_: use correct git new 1f860ec git/hooks/update-script._irkerhook.py_: fix multiline commit messages. The 1 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_ | 5 ++++- 1 file changed, 4 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 1f860ec9e7e8b85b62f435808e80594cc9378283 Author: Mihai Moldovan <ionic@ionic.de> Date: Tue Mar 31 09:10:15 2015 +0200 git/hooks/update-script._irkerhook.py_: fix multiline commit messages. Turns out, python doesn't like running append() on temporary/sliced lists. Or rather, append() is destructive and doesn't just return a new list, but changes the object it was called on. Also add the color lightgrey for the truncate message. Caveat: don't use the ANSI escape code... --- git/hooks/update-script._irkerhook.py_ | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/git/hooks/update-script._irkerhook.py_ b/git/hooks/update-script._irkerhook.py_ index d1ea0ad..53e64b2 100755 --- a/git/hooks/update-script._irkerhook.py_ +++ b/git/hooks/update-script._irkerhook.py_ @@ -133,6 +133,7 @@ class GenericExtractor: self.brown = '\x0305' self.magenta = '\x0306' self.cyan = '\x0310' + self.lightgrey = '\x0315' self.reset = '\x0F' if style == 'ANSI': self.bold = '\x1b[1m' @@ -143,6 +144,7 @@ class GenericExtractor: self.brown = '\x1b[33m' self.magenta = '\x1b[35m' self.cyan = '\x1b[36m' + self.lightgrey = '\x1b[30;1m' self.reset = '\x1b[0m' def load_preferences(self, conf): "Load preferences from a file in the repository root." @@ -286,7 +288,8 @@ class GitExtractor(GenericExtractor): tmp = [line for line in commit.logmsg.split("\n") if line.strip()] if len(tmp) > 6: - tmp[:5].append ("%(blue)s...%(reset)s message truncated") + tmp = tmp[:5] + tmp.append ("%(lightgrey)s... message truncated%(reset)s") commit.logmsg = "\n".join(tmp) # This discards the part of the author's address after @. -- Alioth's /srv/git/code.x2go.org/maintenancescripts.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/maintenancescripts.git