Support dots in repo names
Created by: PyKaB
post-receive hook doesn't support repos with dots in name (directory name) like example.com.git
Fix
diff --git a/lib/hooks/post-receive b/lib/hooks/post-receive
index a4fa9f1..2b44216 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" .git`
env -i redis-cli rpush "resque:queue:post_receive" "{\"class\":\"PostReceive\",\"args\":[\"$reponame\",\"$oldrev\",\"$newrev\",\"$ref\",\"$GL_USER\"]}" > /dev/null 2>&1
done