From: Ben Myers <bpm@sgi.com>
To: xfs@oss.sgi.com
Subject: [PATCH] disable tags in post-receive hook
Date: Wed, 11 Apr 2012 11:26:27 -0500 [thread overview]
Message-ID: <20120411162627.GJ1802@sgi.com> (raw)
Hey Folks,
Yesterday I pushed tags to the oss.sgi.com xfs git repository and forgot to
disable the post-receive hook which generates email to the list at commit
time. You probably saw the resulting mailbomb. I'm sorry about that. In
order to make sure it doesn't happen again next time, I have applied the
following patch to our post-receive hook:
--- post-receive-email.xfs 2009-01-16 01:05:09.000000000 -0600
+++ post-receive-email.xfs.tags_disabled 2012-04-11 10:39:30.542537604 -0500
@@ -105,6 +105,9 @@
# un-annotated tag
refname_type="tag"
short_refname=${refname##refs/tags/}
+ # bpm: clear recipients to disable sending email for
+ # tags. I just mail bombed the list. 3/11/12
+ recipients=""
;;
refs/tags/*,tag)
# annotated tag
@@ -114,6 +117,9 @@
if [ -n "$announcerecipients" ]; then
recipients="$announcerecipients"
fi
+ # bpm: clear recipients to disable sending email for
+ # tags. I just mail bombed the list. 3/11/12
+ recipients=""
;;
refs/heads/*,commit)
# branch
I've tested it out and it seems to have the desired effect. So... just a
heads up, you won't be receiving mail for new tags in the xfs git repo on
oss.sgi.com.
Regards,
Ben
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
next reply other threads:[~2012-04-11 16:25 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-11 16:26 Ben Myers [this message]
2012-04-11 20:22 ` [PATCH] disable tags in post-receive hook Christoph Hellwig
2012-04-11 22:00 ` Ben Myers
2012-04-12 8:49 ` Stan Hoeppner
2012-04-12 16:15 ` Russell Cattelan
2012-04-13 2:45 ` Stan Hoeppner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120411162627.GJ1802@sgi.com \
--to=bpm@sgi.com \
--cc=xfs@oss.sgi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox