在推送配置更改后,Gitosis不更新服务器配置 [英] Gitosis not updating server configuration after push of configuration changes

查看:86
本文介绍了在推送配置更改后,Gitosis不更新服务器配置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用本教程设置了gitosis:

http://scie.nti.st/2007/11/14/hosting-git-repositories-the-easy- and-secure-way



我发现在gitosis.conf中添加适当的权限后,我无法推送并创建新的存储库。我会不断得到读访问被拒绝错误。我最终检查了包含我更新的gitosis.conf文件的服务器上的实际存储库。但是,当我检查位于gitosis用户主文件夹中的'.gitosis.conf'文件时,我发现它没有更新。一旦我将该文件的内容替换为存储库中的内容,我就可以创建并使用新的存储库,而不会出现任何问题。



有谁知道可能导致什么情况这个?我知道gitosis使用更新后的挂钩来适当地更新服务器,所以我认为这个问题很可能存在于此。



预先感谢!
Bryan

解决方案

检查存储库中post-update挂钩的权限。它必须是可执行的,并且发布的gitosis版本不能确保。


I've set up gitosis using the tutorial privided at:

http://scie.nti.st/2007/11/14/hosting-git-repositories-the-easy-and-secure-way

I found that I was unable to push and create a new repository after adding the appropriate permissions in the gitosis.conf. I would continually get "read access Denied" error. I ended up checking the actual repository on the server which contained my updated gitosis.conf file. However when I checked the '.gitosis.conf' file located in the home folder of the gitosis user, I found that it was not updated. Once I replaced the contents of this file with the one in the repository I was able to create and use the new repository with no problems.

Does anyone know what could be causing this? I know that gitosis uses a post-update hook to update the server appropriately, so I think the problem most likely resides around that.

Thanks in advance! Bryan

解决方案

Check the permissions on the post-update hook in the repository. It must be executable, and the published version of gitosis doesn't ensure that.

这篇关于在推送配置更改后,Gitosis不更新服务器配置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆