Re: [PATCH] post-receive-email: do not call sendmail if no mail was generated
Lars Noschinski <lars-2008-2@usenet.noschinski.de> writes:
Show 17 quoted lines
> 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.