From: Junio C Hamano Date: Tue, 08 Sep 2009 21:49:47 GMT Subject: Re: [PATCH] post-receive-email: do not call sendmail if no mail was generated Message-ID: <7v4ordw1hg.fsf@alter.siamese.dyndns.org> In-Reply-To: <20090908205935.GB3858@lars.home.noschinski.de> Lars Noschinski 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.