当前位置: > Linux服务器 > SVN >

Svn自动发布脚本总是提示需要存储密码的解决方法

时间:2014-12-15 01:41来源:linux.it.net.cn 作者:IT

Warning: post-commit hook failed (exit code 1) with output:
-----------------------------------------------------------------------
ATTENTION! Your password for authentication realm:
lxy
can only be stored to disk unencrypted! You are advised to configure
your system so that Subversion can store passwords encrypted, if
possible. See the documentation for details.
You can avoid future appearances of this warning by setting the value
of the 'store-plaintext-passwords' option to either 'yes' or 'no' in
'/home/svn/.subversion/servers'.
-----------------------------------------------------------------------
Store password unencrypted (yes/no)? svn: Can't read stdin: End of file found

使用svn export --username lxy --password lxy "svn://8.8.8.8:9999/lxy" /home/wwwroot/lxy.me --force 这种命令自动导出版本库是总是提示如上信息,在svn update –help中找到了 –no-auth-cache 这个参数。
–no-auth-cache : 不缓存验证信息
加上这个参数后终于可以了:
svn export --username lxy --password lxy "svn://8.8.8.8:9999/lxy" /home/wwwroot/lxy.me --force --no-auth-cache



(责任编辑:IT)
------分隔线----------------------------