gpt4 book ai didi

ubuntu - SVN停止询问用户名+密码

转载 作者:行者123 更新时间:2023-12-04 18:46:18 30 4
gpt4 key购买 nike

使用具有指定用户名和密码的 SVN 提交。我希望服务器抛出错误;所以我可以告诉我的用户他/她的密码错误。

相反,在使用错误密码提交后:

svn commit "test_file.txt" --username admin --password abc

我得到:
Authentication realm: <http://svn:80> Subversion Repository
Username:

它一直要求 Username:Password: .有没有防止这种情况的设置?

最佳答案

--non-interactive 会这样做:

Disables all interactive prompting. Some examples of interactive prompting include requests for authentication credentials and conflict resolution decisions. This is useful if you're running Subversion inside an automated script and it's more appropriate to have Subversion fail than to prompt for more information.



(强调我的),听起来你正在编写 SVN 命令行客户端的脚本,所以无论如何你都会更普遍地想要这个。

关于ubuntu - SVN停止询问用户名+密码,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37863697/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com