changed the post-receive hook in order to push the correct repository name when the name contain special characters

This commit is contained in:
Florin Stan 2012-09-21 13:02:59 -06:00
parent 4afb7b7cb7
commit 6424fc715b

View file

@ -7,6 +7,6 @@ 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`
reponame=`basename "$pwd" | sed s/\.git$//`
env -i redis-cli rpush "resque:queue:post_receive" "{\"class\":\"PostReceive\",\"args\":[\"$reponame\",\"$oldrev\",\"$newrev\",\"$ref\",\"$GL_USER\"]}" > /dev/null 2>&1
done