ansible/roles/git/hooks/files/post-receive-chained
Pierre-Yves Chibon 85bd191653 Update post-receive-chained to use the new post-receive hook from pagure
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
2018-11-21 11:46:49 +01:00

15 lines
655 B
Bash
Executable file

#!/bin/bash
# Redirect stdin to each of the post-receive hooks in place.
# You need to explicitly add your hook to the following list
# for it to be invoked.
pee \
/usr/share/git-core/post-receive-fedmsg \
/usr/share/git-core/post-receive-alternativearch \
/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 \