2013-07-18 78 views
0

我没有设置多用户gitolite环境,但我没有得到post-receive钩子的工作。git后接收钩子权限

问题是我必须处理我的VPS服务器上的两个用户。

例如,如果example.com是我对我的VPS服务器的主域名,我要部署到dev.example.com,然后我的用户git需要写访问的用户example的的public_html的/ dev目录。

$ git push 
Counting objects: 5, done. 
Writing objects: 100% (3/3), 275 bytes, done. 
Total 3 (delta 0), reused 0 (delta 0) 
remote: fatal: Could not switch to '/home/example/public_html': Permission denied 
To ssh://[email protected]:22/project.git 
    e0a35f7..4f747e6 master -> master 

换句话说我怎么设置后,收到来自钩:

home/git/repositories/project.git/hooks

通过例如拥有的托管文件夹:例如:

home/example/public_html/dev

回答

0

好问题解决了。

我改变了小时的组权限,它表现得很奇怪。 后来我意识到你需要注销登录用户才能获得新的权限。

Doh !! :p