git-svn 匿名结帐失败并显示 -s
我正在尝试使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
原因可能是匿名用户无法访问 SVN 存储库的根目录。
来自 git help svn :
由于您使用的是
-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
: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
我知道这可能与什么有关:
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...