2011-12-12 19:03:26 -05:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# 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.
|
|
|
|
pwd=`pwd`
|
|
|
|
reponame=`basename "$pwd" | cut -d. -f1`
|
2012-02-29 15:38:24 -05:00
|
|
|
env -i redis-cli rpush "resque:queue:post_receive" "{\"class\":\"PostReceive\",\"args\":[\"$reponame\",\"$oldrev\",\"$newrev\",\"$ref\",\"$GL_USER\"]}" > /dev/null 2>&1
|
2011-12-12 19:03:26 -05:00
|
|
|
done
|