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