linux系统中svn自动更新出错提示post-commit hook failed (exit code 255) with no output.了,下文来看看此问题的解决办法.
linux/unix下svn自动更新出错解决:
post-commit hook failed (exit code 255) with no output.
linux/unix下要实现svn提交后自动更新到测试服务器,添加hook即可/usr/svn/mulu/hooks/post-commit 不带后缀,设置权限为可执行:
chmod 777 /usr/svn/baoming/hooks/post-commit
代码如下:
- #!/bin/sh
- WEB=”/usr/home/mulu”
- SVN=”/usr/local/bin/svn”
- $SVNupdate$WEB–usernameppkj.net–passwordppkj.net||exit1
- exit0//phpfensi.com
其中的exit不可缺失,否则会报错.