summaryrefslogtreecommitdiffstats
path: root/debian/patches/0005-author-name.patch
blob: 2df864464f0410e712aa0a45cd4c6812f2ee38d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
From: Daniel Baumann <mail@daniel-baumann.ch>
Date: Sun, 13 May 2018 15:07:57 +0200
Subject: Use author_name instead of author in Git notifications.

---
 irkerhook.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/irkerhook.py b/irkerhook.py
index 9768eac..8bf46f8 100755
--- a/irkerhook.py
+++ b/irkerhook.py
@@ -298,7 +298,7 @@ class GitExtractor(GenericExtractor):
         # Might be be nice to ship the full email address, if not
         # for spammers' address harvesters - getting this wrong
         # would make the freenode #commits channel into harvester heaven.
-        commit.author = commit.mail.split("@")[0]
+        commit.author = commit.author_name
         commit.author_date, commit.commit_date = \
             do("git log -1 '--pretty=format:%ai|%ci' " + shellquote(commit.commit)).split("|")
         return commit