From 6424fc715b14880448407b457215124b9dbde59c Mon Sep 17 00:00:00 2001 From: Florin Stan Date: Fri, 21 Sep 2012 13:02:59 -0600 Subject: changed the post-receive hook in order to push the correct repository name when the name contain special characters --- lib/hooks/post-receive | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/hooks/post-receive') 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 -- cgit v1.2.1