summaryrefslogtreecommitdiffstats
path: root/debian/patches/0005-author-name.patch
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 10:31:26 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 10:31:26 +0000
commitf686102cc3129b62339e3166afdf492015deee07 (patch)
treed0f5387a7b3c5b218b921f58a70db6067bc93e28 /debian/patches/0005-author-name.patch
parentAdding upstream version 2.19+dfsg. (diff)
downloadirker-debian/2.19+dfsg-1.tar.xz
irker-debian/2.19+dfsg-1.zip
Adding debian version 2.19+dfsg-1.debian/2.19+dfsg-1debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches/0005-author-name.patch')
-rw-r--r--debian/patches/0005-author-name.patch21
1 files changed, 21 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..864e497
--- /dev/null
+++ b/debian/patches/0005-author-name.patch
@@ -0,0 +1,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 7dcd6b2..661071b 100755
+--- a/irkerhook.py
++++ b/irkerhook.py
+@@ -325,7 +325,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