summaryrefslogtreecommitdiff
path: root/debian/patches/0005-author-name.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/0005-author-name.patch')
-rw-r--r--debian/patches/0005-author-name.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/debian/patches/0005-author-name.patch b/debian/patches/0005-author-name.patch
new file mode 100644
index 0000000..69f4f52
--- /dev/null
+++ b/debian/patches/0005-author-name.patch
@@ -0,0 +1,15 @@
+Author: Daniel Baumann <mail@daniel-baumann.ch>
+Description: Use author_name instead of author in Git notifications.
+
+diff -Naurp irker.orig/irkerhook.py irker/irkerhook.py
+--- irker.orig/irkerhook.py
++++ irker/irkerhook.py
+@@ -281,7 +281,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