这2天根据下面指导安装CentOS 7 下安装 SVN (HTTPS + SSH) , 一切都很正常.
CentOS安装SVN服务器并配置HTTPS连接
除了下面的配置一开始没注意到,费了点时间.
chcon -R -t httpd_sys_content_t svn库目录
chcon -R -t httpd_sys_rw_content_t svn库目录
然后,想加个钩子,让开发人员提交的时候必须写注释。然后有下面的错误.
Commit blocked by pre-commit hook (exit code 255) with no output.
找了好久,有下面的解决方案.
Svn pre-commit hook not getting executed
CentOS安装SVN服务器并配置HTTPS连接
除了下面的配置一开始没注意到,费了点时间.
chcon -R -t httpd_sys_content_t svn库目录
chcon -R -t httpd_sys_rw_content_t svn库目录
然后,想加个钩子,让开发人员提交的时候必须写注释。然后有下面的错误.
Commit blocked by pre-commit hook (exit code 255) with no output.
找了好久,有下面的解决方案.
Svn pre-commit hook not getting executed
Finally got a solution for this. The root cause was the SELinux not allowing the pre-commit script to get executed through the httpd service. I get rid of that by running this line
chcon -t httpd_exec_t pre-commit
有点奇怪,为什么用YUM 安装的SVN server 是1.7的版本? 官方的都到了1.9了....
有点奇怪,为什么用YUM 安装的SVN server 是1.7的版本? 官方的都到了1.9了....