SVN 错误:子命令“help”不接受选项“--no-auth-cache”

发布于 2024-12-01 17:07:26 字数 645 浏览 1 评论 0原文

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

审判长 2024-12-08 17:07:26

看起来你的路径中有一个脚本(或别名?)正在使用额外的标志调用 svn 。

例如,像这样的别名设置:

alias svn='svn --no-auth-cache'

就会出现这个问题。

尝试直接调用 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:

alias svn='svn --no-auth-cache'

will give this problem.

Try calling svn directly like /bin/svn or wherever it is installed

吖咩 2024-12-08 17:07:26

与他人意见一致; 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.

谷夏 2024-12-08 17:07:26

您确定您使用的是普通 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 of svn.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文