From 31f3e9a64ceb7bfbbf38dcf5552cf7c79965127a Mon Sep 17 00:00:00 2001 From: Laurent Bachelier Date: Wed, 23 Jan 2013 22:45:19 +0100 Subject: [PATCH] Do not crash when there is a "|" in the commit line Signed-off-by: Eric S. Raymond --- irkerhook.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/irkerhook.py b/irkerhook.py index 96f7d1f..527266f 100755 --- a/irkerhook.py +++ b/irkerhook.py @@ -264,7 +264,7 @@ class GitExtractor(GenericExtractor): # conventionally supposed to be a summary of the commit. Under # other VCSes a different choice may be appropriate. metainfo = do("git log -1 '--pretty=format:%an <%ae>|%s' " + shellquote(commit.commit)) - (commit.author, commit.logmsg) = metainfo.split("|") + (commit.author, _, commit.logmsg) = metainfo.partition("|") commit.mail = commit.author.split()[-1].strip("<>") # This discards the part of the author's address after @. # Might be be nice to ship the full email address, if not -- 2.26.2