Commit 6424fc715b14880448407b457215124b9dbde59c

Authored by Florin Stan
1 parent 4afb7b7c

changed the post-receive hook in order to push the correct repository name when …

…the name contain special characters
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
... ...