无法在需要 AD 身份验证的子存储库上执行 git-svn 克隆
我试图在企业颠覆存储库前通过 mysysgit 使用 git-svn 。此 svn 存储库使用 http 协议,并且需要 Active Directory 身份验证。我无法阅读存储库的全部内容,我只是被授权查看我团队的项目。
所以我正在尝试以下命令:
$ git svn clone http://enterprise:12345/svn/my_team /my_project1/module1 module1 -s --prefix=svn/
其中 http...my_team 是我通常可以使用svn客户端。
以下是来自 Git 的响应:
身份验证领域 http://enterprise:12345 Subversion 存储库需要针对 AD 进行身份验证 “yanflea”的密码:
在此步骤中,我输入密码,然后……没有任何相关反应发生。它不断警告我所需的 AD 身份验证,并一次又一次询问我的用户名和密码。
我在几个论坛上读到,在这种情况下,需要选项 --no-minimize-url 。我尝试将其添加到命令中,但它没有改变任何内容。我很惊讶,因为明确遇到此问题的人比我有更详细的警告。类似
使用更高级别的 URL:path-to-repo/myrepo/myproject =>存储库路径/myrepo (http://stackoverflow.com/questions/1453416/git-svn-clone-checkouts-wrong-repo)
这清楚地表明 --no-minimize-url 可能会改变一些东西。就我而言,首先我没有这样的消息,其次,无论我是否添加 --no-minimize-url 选项,似乎都会使用短网址。我真的不明白。任何建议都非常受欢迎。
雅尼克.
I am trying to use git-svn via mysysgit in front of an entreprise subversion repository. This svn repo uses the http protocol, and requires an Active Directory authentication. I can't read on the entire content of the repo, I am just authorized to see my team's projects.
So I am trying the following command :
$ git svn clone http://enterprise:12345/svn/my_team/my_project1/module1 module1 -s --prefix=svn/
where http...my_team is the base url I can access usually with an svn client.
And here is the response from Git :
Authentication realm http://enterprise:12345 Subversion repository needs authentication against AD
Password for 'yanflea':
At this step I enter my password and… nothing relevant happens. It keeps warning me about the needed AD authentication, and asks me again and again for my username and password.
I read on several forums that in such a case, the option --no-minimize-url was required. I tried to add it in the command but it didn't change anything. I am surprised because people who explicitly encountered this issue had a more verbose warning than me. Something like
Using higher level of URL: path-to-repo/myrepo/myproject => path-to-repo/myrepo
(http://stackoverflow.com/questions/1453416/git-svn-clone-checkouts-wrong-repo)
which indicates clearly that the --no-minimize-url could change something. In my case, first I don't have such a message, and second, the short url seems to be used whatever I add --no-minimize-url option or not. I really don't get it. Any advice is more than welcome.
Yannick.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我最终使用了 TortoiseGit,奇怪的是,它确实有效,而且它发送的命令与我发送的命令基本相同。现在,当我再次通过 msysgit 执行此操作时,它工作得很好,根本不再询问我的凭据...问题就消失了...不确定我第一次做错了什么。无论如何,我不会在这个问题上花更多的时间。
I finally ended up using TortoiseGit, and it did work, strangely, while it sent basically the same command as I did. And now when I do it via msysgit again, it works fine without asking me my credentials anymore at all... The problem just disappeared... Not sure what I did wrong the first time. Not going to spend more time on this issue anyway.