[X2Go-Commits] [maintenancescripts] 01/01: git/hooks/update-script._irkerhook.py_: maxsplit was off-by-one.

git-admin at x2go.org git-admin at x2go.org
Tue Mar 31 08:27:56 CEST 2015


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

x2go pushed a commit to branch master
in repository maintenancescripts.

commit 31437aed7bade3b6c0f9afa926712c6ef30e2a52
Author: Mihai Moldovan <ionic at ionic.de>
Date:   Tue Mar 31 08:27:19 2015 +0200

    git/hooks/update-script._irkerhook.py_: maxsplit was off-by-one.
    
    As always.
---
 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 79b3d67..e79e7f1 100755
--- a/git/hooks/update-script._irkerhook.py_
+++ b/git/hooks/update-script._irkerhook.py_
@@ -281,7 +281,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' " + shellquote(commit.commit)).split("\n", 3)
+            do("git log -1 '--pretty=format:%an%n%ae%n%s' " + shellquote(commit.commit)).split("\n", 2)
         # Discard empty lines
         commit.logmsg = "\n".join([line for line in commit.logmsg.split("\n") if line.strip()])
         # 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


More information about the x2go-commits mailing list