SVN 错误:子命令“help”不接受选项“--no-auth-cache”
SVN 客户端无法在我的 CentOS 开发服务器上运行
CLI SVN 客户端调用会产生相同的错误。
$ svn revert ./foo.txt
Subcommand 'revert' doesn't accept option '--no-auth-cache'
Type 'svn help help' for usage.
$ svn help
Subcommand 'help' doesn't accept option '--no-auth-cache'
Type 'svn help help' for usage.
...
因此,每次我尝试从 CLI 调用 svn 客户端时,它都会产生相同的错误,
我可以“svn list”和“svn status”。但无法“svn 恢复”我的更改并调用“svn help”。
我试图调查这个问题,发现 svn 客户端总是尝试自动使用“--no-auth-cache”开关不知何故,而没有明确提及此开关。
但由于此开关不适用于“恢复”等本地命令,因此会产生此类错误。
看起来这个问题与 svn 客户端配置/设置有关。
我什至尝试删除整个客户端配置数据目录: $ rm -rf ~/.subversion
但这没有帮助。
SVN client doesn't works on my CentOS development server
CLI SVN client call produces the same error.
$ svn revert ./foo.txt
Subcommand 'revert' doesn't accept option '--no-auth-cache'
Type 'svn help help' for usage.
$ svn help
Subcommand 'help' doesn't accept option '--no-auth-cache'
Type 'svn help help' for usage.
...
So it produces the same error each time I'm trying to call the svn client from CLI
I'm able to "svn list" and "svn status". But there is no ability to "svn revert" my changes and call "svn help".
I've tried to investigate the problem and found that svn client always tries to use "--no-auth-cache" switch somehow automatically without explicit mention of this switch.
But as this switch is not available for such local commands like "revert" it produces that kind of error.
It looks like this problem somehow related to svn client configuration/setup.
I've even tried to remove the entire client configuration data directory:
$ rm -rf ~/.subversion
but it doesn't helps.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
看起来你的路径中有一个脚本(或别名?)正在使用额外的标志调用 svn 。
例如,像这样的别名设置:
就会出现这个问题。
尝试直接调用 svn,如
/bin/svn
或安装在任何地方Looks like there is a script ( or an alias?) in your path that is calling svn with the extra flag.
For example an alias set like:
will give this problem.
Try calling svn directly like
/bin/svn
or wherever it is installed与他人意见一致; type -all svn 的输出将指示将执行哪个 svn 命令以及它隐藏的其他命令。
Concur with others; the output of
type -all svn
will indicate which svn command will execute, and which others it shadows.您确定您使用的是普通 SVN 吗?也许有人设置了别名?
尝试使用
apropos svn
找出您的svn客户端的安装位置,然后直接执行该文件(例如/usr/bin/svn help
)。检查
alias
是否有别名。~/.subversion/config
中有什么内容吗?尝试重命名或删除该目录。编辑:
要规避可能的别名,请尝试执行
\svn
而不是svn
。Are you sure you are using vanilla SVN? Maybe someone setup an alias?
Try
apropos svn
to find out where your svn client is installed, and execute that file directly (example/usr/bin/svn help
).Check
alias
for aliases.Is there anything in
~/.subversion/config
? Try renaming or removing that directory.Edit:
To circumvent possible aliases, try executing
\svn
instead ofsvn
.