Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
fix contrib/hooks/post-receive-email hooks.recipients error message
author
Jeff Muizelaar
<jeff@infidigm.net>
Thu, 11 Oct 2007 21:49:21 +0000
(17:49 -0400)
committer
Shawn O. Pearce
<spearce@spearce.org>
Tue, 16 Oct 2007 01:26:42 +0000
(21:26 -0400)
Have the error message for missing recipients actually report the
missing config variable and not a fictional one.
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
contrib/hooks/post-receive-email
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
0c696fe
)
diff --git
a/contrib/hooks/post-receive-email
b/contrib/hooks/post-receive-email
index cbbd02fadd753215b3477c178b74d79a59424ee7..b188aa3d67eda77b168c61a53162a25abcc56e7d 100644
(file)
--- a/
contrib/hooks/post-receive-email
+++ b/
contrib/hooks/post-receive-email
@@
-138,7
+138,15
@@
generate_email()
# Check if we've got anyone to send to
if [ -z "$recipients" ]; then
- echo >&2 "*** hooks.recipients is not set so no email will be sent"
+ case "$refname_type" in
+ "annotated tag")
+ config_name="hooks.announcelist"
+ ;;
+ *)
+ config_name="hooks.mailinglist"
+ ;;
+ esac
+ echo >&2 "*** $config_name is not set so no email will be sent"
echo >&2 "*** for $refname update $oldrev->$newrev"
exit 0
fi