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”
$SVN update $WEB –username ppkj.net –password ppkj.net || exit 1
exit 0
其中的exit不可缺失,否则会报错
时间: 2024-11-08 21:53:02