We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f80b6de + 4b5f94c commit 9b5a272Copy full SHA for 9b5a272
1 file changed
contrib/hooks/post-receive-email
@@ -144,13 +144,13 @@ prep_for_email()
144
short_refname=${refname##refs/remotes/}
145
echo >&2 "*** Push-update of tracking branch, $refname"
146
echo >&2 "*** - no email generated."
147
- exit 0
+ return 1
148
;;
149
*)
150
# Anything else (is there anything else?)
151
echo >&2 "*** Unknown type of update to $refname ($rev_type)"
152
echo >&2 "*** - no email generated"
153
- return 0
154
155
esac
156
@@ -166,10 +166,10 @@ prep_for_email()
166
167
echo >&2 "*** $config_name is not set so no email will be sent"
168
echo >&2 "*** for $refname update $oldrev->$newrev"
169
170
fi
171
172
- return 1
+ return 0
173
}
174
175
#
0 commit comments