git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Junio C Hamano <gitster@pobox.com>
To: Lars Noschinski <lars-2008-2@usenet.noschinski.de>
Cc: Junio C Hamano <gitster@pobox.com>,
	git@vger.kernel.org, andyparkins@gmail.com, pape@smarden.org
Subject: Re: [PATCH] post-receive-email: do not call sendmail if no mail was generated
Date: Tue, 08 Sep 2009 14:49:47 -0700	[thread overview]
Message-ID: <7v4ordw1hg.fsf@alter.siamese.dyndns.org> (raw)
In-Reply-To: <20090908205935.GB3858@lars.home.noschinski.de> (Lars Noschinski's message of "Tue\, 8 Sep 2009 22\:59\:35 +0200")

Lars Noschinski <lars-2008-2@usenet.noschinski.de> writes:

> Actually, there are a two cases in the case statement before, where
> generate_email would return:
>
>     refs/remotes/*,commit)
>         # tracking branch
>         refname_type="tracking branch"
>         short_refname=${refname##refs/remotes/}
>         echo >&2 "*** Push-update of tracking branch, $refname"
>         echo >&2 "***  - no email generated."
>         exit 0
>         ;;
>     *)
>         # Anything else (is there anything else?)
>         echo >&2 "*** Unknown type of update to $refname ($rev_type)"
>         echo >&2 "***  - no email generated"
>         exit 1
>         ;;

Ok, that justifies the existence of the patch.

  reply	other threads:[~2009-09-08 21:50 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-28 17:39 [PATCH] post-receive-email: do not call sendmail if no mail was generated Lars Noschinski
2009-09-08  9:20 ` Lars Noschinski
2009-09-08 16:57   ` Junio C Hamano
2009-09-08 18:55     ` Lars Noschinski
2009-09-08 19:00       ` Lars Noschinski
2009-09-08 20:15         ` Junio C Hamano
2009-09-08 20:59           ` Lars Noschinski
2009-09-08 21:49             ` Junio C Hamano [this message]
2009-09-08 21:12           ` Andy Parkins

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=7v4ordw1hg.fsf@alter.siamese.dyndns.org \
    --to=gitster@pobox.com \
    --cc=andyparkins@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=lars-2008-2@usenet.noschinski.de \
    --cc=pape@smarden.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).