svn log 可以使用通过基本身份验证传递的显式凭据运行吗?

发布于 2024-10-07 23:37:51 字数 636 浏览 0 评论 0原文

我有一些从 TeamCity 服务器运行 svn log 的戏剧,我之前在 为什么 TeamCity 命令行运行程序在“系统”下执行?

没有相反的证据,看起来就像是在本地运行的构建服务器调用 svn log 时一样无法访问 SVN 存储库的系统帐户。尽管并不理想,但看起来实现此目的的唯一方法是在 svn log 命令中传递凭据。

SVN 1.0 文档 显示了 svn 上可用的用户名和密码参数log 命令,但 SVN 1.6 文档(以及 1.5,就此而言),似乎不再有这些参数。还可以吗?对于以不是当前帐户的身份运行命令还有其他想法吗?

I'm having some dramas running svn log from a TeamCity server which I've previously asked about in Why does the TeamCity command line runner execute under “System”?

With no evidence to the contrary, it looks like when svn log is invoked by the build server it runs under the local system account which doesn't have access to the SVN repository. Although not ideal, it looks like the only way to make this work is to pass the credentials in the svn log command.

The documentation for SVN 1.0 shows username and password parameters available on the svn log command but the SVN 1.6 documentation (and 1.5, for that matter), no longer seem to have these parameters. Is it still possible? Any other thoughts on running the command under an identity that isn't the current account?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

薯片软お妹 2024-10-14 23:37:51

运行svn help log,它看起来像

--username ARG和--password ARG全局选项

文档 也是如此。

Running svn help log, it looks like

--username ARG and --password ARG are Global options.

Same mentioned in the documentation as well.

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