From: Marc Branchaud <marcnarc@xiplink.com>
To: Michael J Gruber <git@drmicha.warpmail.net>
Cc: git list <git@vger.kernel.org>
Subject: Re: hooks/post-receive-email bug?
Date: Tue, 07 Jul 2009 11:14:13 -0400 [thread overview]
Message-ID: <4A536645.70307@xiplink.com> (raw)
In-Reply-To: <4A534E9F.3010303@drmicha.warpmail.net>
Michael J Gruber wrote:
>
> Why not read the hook script yourself... but see below.
Laziness, obviously! :)
> I assume that by "pushing matching heads" you mean you did not create a
> topic branch on origin?
Right. The push command pushed both merge commits to the origin, taking the topic commits along with them.
> The hook tries cleverly to avoid sending multiple commit mails for the
> same commit. The heuristics is not completely failsafe. It seems the
> hook thinks these commits have been dealt with already, which usually
> happens when they can be reached by other refs than the one being updated.
Thanks for confirming the issue. Actually, I don't think the existence of a topic branch on the origin would've made a difference. Like you say, the script ignores any commits reachable by any other branch.
It seems to me that the script might be able to keep track of which branches are being updated, and notice if two or more of them share commits. But that may require a heavy rewrite...
One question: Is the reason the script sent two emails because git called it with two lines on stdin? As in:
C D master
Y Z release
M.
prev parent reply other threads:[~2009-07-07 15:14 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-17 22:21 hooks/post-receive-email bug? Marc Branchaud
2009-07-06 14:49 ` Marc Branchaud
2009-07-07 13:33 ` Michael J Gruber
2009-07-07 15:14 ` Marc Branchaud [this message]
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=4A536645.70307@xiplink.com \
--to=marcnarc@xiplink.com \
--cc=git@drmicha.warpmail.net \
--cc=git@vger.kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).