summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2010-06-11 21:52:22 (GMT)
committerH. Peter Anvin <hpa@zytor.com>2010-06-11 21:52:22 (GMT)
commitdd43633f280c77164685c9cf2a114b33d80634c6 (patch)
tree4b02ce4e3d0262bc88405e89ae62a9f98f649e28
parentf951703418f88ced45cf202e1f0428a32b721341 (diff)
downloadtip-bot-dd43633f280c77164685c9cf2a114b33d80634c6.zip
tip-bot-dd43633f280c77164685c9cf2a114b33d80634c6.tar.gz
tip-bot-dd43633f280c77164685c9cf2a114b33d80634c6.tar.bz2
tip-bot-dd43633f280c77164685c9cf2a114b33d80634c6.tar.xz
Don't add <tip-*@vger.kernel.org> as a Reference:
-rwxr-xr-xrobotfmt.pl7
1 files changed, 6 insertions, 1 deletions
diff --git a/robotfmt.pl b/robotfmt.pl
index ac0a875..e11ba7d 100755
--- a/robotfmt.pl
+++ b/robotfmt.pl
@@ -93,6 +93,9 @@ $format =~ s/\%b\%n/\%b/; # Remove newline after %b
$lkml = 'linux-kernel@vger.kernel.org';
# $lkml = 'hpa+tiptest@zytor.com';
+# Form used for inital-submission emails
+$nullref = 'tip-*@vger.kernel.org';
+
open(LOG, "-|", "git log -M -C -C --pretty=format:\Q${format}\E -p --stat \Q${rev}^..${rev}\E") or die;
$header = 1;
while (defined($l = <LOG>)) {
@@ -113,7 +116,9 @@ while (defined($l = <LOG>)) {
# We have a thread in which to autopost to LKML...
# Let's be very careful with this...
$cclist{$lkml}++;
- push(@references, $1);
+ if ($1 ne $nullref) {
+ push(@references, $1);
+ }
}
}
push(@message, $l."\n");