From 85bd1916533d577debc756d5847e0d99351d5181 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Wed, 21 Nov 2018 11:46:49 +0100 Subject: [PATCH] Update post-receive-chained to use the new post-receive hook from pagure Signed-off-by: Pierre-Yves Chibon --- roles/git/hooks/files/post-receive-chained | 24 +--------------------- 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/roles/git/hooks/files/post-receive-chained b/roles/git/hooks/files/post-receive-chained index 05c4bcd9b9..b7b4a3ee58 100755 --- a/roles/git/hooks/files/post-receive-chained +++ b/roles/git/hooks/files/post-receive-chained @@ -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 -