Commit 3e9836ae1e21dfaf60a5059959c7bc38dc17decf

Authored by Dmitriy Zaporozhets
2 parents 1502be32 6424fc71

Merge pull request #1526 from namtzigla/dot-repos-names

changed the post-receive hook in order to push the correct repository
Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
lib/hooks/post-receive
@@ -7,6 +7,6 @@ while read oldrev newrev ref @@ -7,6 +7,6 @@ while read oldrev newrev ref
7 do 7 do
8 # For every branch or tag that was pushed, create a Resque job in redis. 8 # For every branch or tag that was pushed, create a Resque job in redis.
9 pwd=`pwd` 9 pwd=`pwd`
10 - reponame=`basename "$pwd" | cut -d. -f1` 10 + reponame=`basename "$pwd" | sed s/\.git$//`
11 env -i redis-cli rpush "resque:queue:post_receive" "{\"class\":\"PostReceive\",\"args\":[\"$reponame\",\"$oldrev\",\"$newrev\",\"$ref\",\"$GL_USER\"]}" > /dev/null 2>&1 11 env -i redis-cli rpush "resque:queue:post_receive" "{\"class\":\"PostReceive\",\"args\":[\"$reponame\",\"$oldrev\",\"$newrev\",\"$ref\",\"$GL_USER\"]}" > /dev/null 2>&1
12 done 12 done