gitlabhq/lib/hooks/post-receive

13 lines
453 B
Plaintext
Raw Normal View History

2012-05-31 15:19:48 +02:00
#!/usr/bin/env bash
2013-01-09 07:14:05 +01:00
# Version 4.1
# This file was placed here by GitLab. It makes sure that your pushed commits
# will be processed properly.
while read oldrev newrev ref
do
# For every branch or tag that was pushed, create a Resque job in redis.
2012-12-08 19:48:33 +01:00
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