今天有一位同事提交SVN时, 出现了以下错误:
post-commit hook faild(exit code 1) with output:
/home/svn/xxx.com/hook/post-commit:line 50: mailer.py:command not foundsvn:Authentication error from server: Username not found
以前好好的...
折腾了好一会, 竟然不行. 回头仔细看下错误 Username not found, 看下hook/post-commit 使用的帐号:
svn update /var/www/xxx.com --username xixihaha --password hahaxixi --non-interactive
然后在看下passwd 配置的帐号和密码, 居然没有xixihaha 这个帐号, 谁删的, 我要宰了他...
把帐号加上 或者post-commit svn update 使用其他的帐号就可以了
本文记录了一次SVN提交过程中遇到的问题及解决方法。主要错误为post-commithook失败和认证错误,通过检查hook脚本中指定的用户名和密码是否正确配置来定位问题。
2468

被折叠的 条评论
为什么被折叠?



