diff options
Diffstat (limited to 'hooks/post-receive')
-rwxr-xr-x | hooks/post-receive | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/hooks/post-receive b/hooks/post-receive index ebd9e1a..acb1e40 100755 --- a/hooks/post-receive +++ b/hooks/post-receive @@ -1,11 +1,6 @@ -#!/usr/bin/env bash +#!/usr/bin/env ruby -# This file was placed here by GitLab. It makes sure that your pushed commits -# will be processed properly. +# This file was placed here by GitLab. +# IT IS DEPRECATED NOW. +# All GitLab logic handled by update hook -while read oldrev newrev ref -do - # For every branch or tag that was pushed, create a Resque job in redis. - repo_path=`pwd` - env -i redis-cli rpush "resque:gitlab:queue:post_receive" "{\"class\":\"PostReceive\",\"args\":[\"$repo_path\",\"$oldrev\",\"$newrev\",\"$ref\",\"$GL_USER\"]}" > /dev/null 2>&1 -done |