Update post-receive-chained to use the new post-receive hook from pagure
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
parent
5cd44ca6fe
commit
85bd191653
1 changed files with 1 additions and 23 deletions
|
@ -6,32 +6,10 @@
|
|||
pee \
|
||||
/usr/share/git-core/post-receive-fedmsg \
|
||||
/usr/share/git-core/post-receive-alternativearch \
|
||||
/usr/lib/python2.7/site-packages/pagure/hooks/files/default_hook.py \
|
||||
/usr/lib/python2.7/site-packages/pagure/hooks/files/pagure_hook.py \
|
||||
/usr/lib/python2.7/site-packages/pagure/hooks/files/post-receive \
|
||||
"/usr/bin/grok-manifest -m /srv/git/grokmirror/manifest.js.gz -t /srv/git/repositories/ -n `pwd`"
|
||||
|
||||
# We used to send emails directly from the git hook here, but now we send to
|
||||
# fedmsg which routes to FMN which routes to packagers and the mailing list.
|
||||
#$GIT_DIR/hooks/post-receive-chained.d/post-receive-email \
|
||||
|
||||
# Mechanism to support pagure's hook as well
|
||||
hookname=`basename $0`
|
||||
|
||||
|
||||
FILE=`mktemp`
|
||||
trap 'rm -f $FILE' EXIT
|
||||
cat - > $FILE
|
||||
|
||||
for hook in $GIT_DIR/hooks/$hookname.*
|
||||
do
|
||||
if test -x "$hook"; then
|
||||
cat $FILE | $hook "$@"
|
||||
status=$?
|
||||
|
||||
if test $status -ne 0; then
|
||||
echo Hook $hook failed with error code $status
|
||||
exit $status
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue