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 -