ansible/roles/git/hooks/files/post-receive-chained
Aurélien Bompard 4bfc46ce37
Don't send a fedora-messaging message from the Pagure git hook
Pagure already sends a message on commit, this causes a duplication.

Related to: https://pagure.io/fedora-infrastructure/issue/11687#comment-890826

Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
2024-01-11 11:35:39 +01:00

17 lines
725 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-alternativearch \
/usr/lib/python3.6/site-packages/pagure/hooks/files/post-receive \
"/usr/bin/grok-manifest -m /srv/git/grokmirror/manifest.js.gz -t /srv/git/repositories/ -n `pwd`"
# Don't send to fedora-messaging here, Pagure already does that (#11687)
# /usr/bin/fedora-messaging-git-hook \
# 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 \