Commit 3e9836ae1e21dfaf60a5059959c7bc38dc17decf
Exists in
master
and in
4 other branches
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 | 7 | do |
8 | 8 | # For every branch or tag that was pushed, create a Resque job in redis. |
9 | 9 | pwd=`pwd` |
10 | - reponame=`basename "$pwd" | cut -d. -f1` | |
10 | + reponame=`basename "$pwd" | sed s/\.git$//` | |
11 | 11 | env -i redis-cli rpush "resque:queue:post_receive" "{\"class\":\"PostReceive\",\"args\":[\"$reponame\",\"$oldrev\",\"$newrev\",\"$ref\",\"$GL_USER\"]}" > /dev/null 2>&1 |
12 | 12 | done | ... | ... |