git-svn 匿名结帐失败并显示 -s

发布于 2024-08-06 14:14:14 字数 903 浏览 6 评论 0原文

我正在尝试使用 git 克隆具有 std 布局的 svn 存储库(使用 -s 选项)。存储库匿名使用 https(存储库位于 https://secure. simplistix.com/svn/xlwt/)。我可以使用 svn 很好地检查存储库,但是使用 git-svn 时我会收到密码提示,然后无法检查(我没有此存储库的帐户) :

Authentication realm:  Simplistix Subversion Server
Password for 'davidf': 
Authentication realm:  Simplistix Subversion Server
Username: 
Password for '': 
Authentication realm:  Simplistix Subversion Server
Username: 
Password for '': 
W: Ignoring error from SVN, path probably does not exist: (160013): Filesystem has no item: '/svn/!svn/bc/100/xlwt' path not found
W: Do not be alarmed at the above message git-svn is just searching aggressively for old history.
This may take a while on large repositories

生成的存储库完全是空的

git-svn似乎假设如果存储库以https开头,则需要身份验证。有办法解决这个问题吗?

I'm trying to use git to clone an svn repository with std layout (using the -s option). The repository uses https anonymously (the repository is at https://secure.simplistix.com/svn/xlwt/). I can check the repository out fine using svn, but with git-svn I get password prompts and then cannot check out (I don't have an account for this repository):

Authentication realm:  Simplistix Subversion Server
Password for 'davidf': 
Authentication realm:  Simplistix Subversion Server
Username: 
Password for '': 
Authentication realm:  Simplistix Subversion Server
Username: 
Password for '': 
W: Ignoring error from SVN, path probably does not exist: (160013): Filesystem has no item: '/svn/!svn/bc/100/xlwt' path not found
W: Do not be alarmed at the above message git-svn is just searching aggressively for old history.
This may take a while on large repositories

The resulting repository is entirely empty

git-svn seems to assume that if the repository starts with https, authentication is required. Is there a way to work around this?

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

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

发布评论

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

评论(2

空城旧梦 2024-08-13 14:14:14

原因可能是匿名用户无法访问 SVN 存储库的根目录。

来自 git help svn :

当跟踪多个目录时(使用 --stdlayout--branches--tags 选项),git svn 将尝试连接到 Subversion 存储库的根目录(或允许的最高级别)。如果整个项目在存储库中移动,此默认设置可以更好地跟踪历史记录,但可能会导致存在读取访问限制的存储库出现问题。

由于您使用的是 -s 选项(--stdlayout 的简写),这会影响您。

要防止 git svn 尝试连接到存储库的根目录,请将选项 --no-minimize-url 添加到命令行。

另请参阅:git 帮助 svn

The reason is probably that the root of the SVN repository is not accessible to anonymous users.

From git help svn:

When tracking multiple directories (using --stdlayout, --branches, or --tags options), git svn will attempt to connect to the root (or highest allowed level) of the Subversion repository. This default allows better tracking of history if entire projects are moved within a repository, but may cause issues on repositories where read access restrictions are in place.

Since you’re using the -s option (shorthand for --stdlayout), this will affect you.

To prevent git svn from attempting to connect to the root of the repository, add the option --no-minimize-url to the command line.

See also: git help svn

尾戒 2024-08-13 14:14:14

我知道这可能与什么有关:

http://subversion.tigris .org/issues/show_bug.cgi?id=3242

如果不是这样,那么你可能不走运......
我的存储库的根目录无法公开访问...

I have an idea what this might be related to:

http://subversion.tigris.org/issues/show_bug.cgi?id=3242

If it's not that, then you're likely out of luck...
The root of my repository is not publicly accessible...

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