diff options
author | Florin Stan <tom@hangar88.net> | 2012-09-21 13:02:59 -0600 |
---|---|---|
committer | Florin Stan <tom@hangar88.net> | 2012-09-21 13:02:59 -0600 |
commit | 6424fc715b14880448407b457215124b9dbde59c (patch) | |
tree | 870ecc4598fcdc7e5c4688c8f8d13d1664b9595f /lib | |
parent | 4afb7b7cb7b42688bea70298c80b4735f59dab22 (diff) | |
download | gitlab-ce-6424fc715b14880448407b457215124b9dbde59c.tar.gz |
changed the post-receive hook in order to push the correct repository name when the name contain special characters
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/hooks/post-receive | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/hooks/post-receive b/lib/hooks/post-receive index a4fa9f1c234..4e59667984c 100755 --- a/lib/hooks/post-receive +++ b/lib/hooks/post-receive @@ -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 |