无法在代理后执行git-svn提取 [英] Cannot do git-svn fetch behind proxy

查看:203
本文介绍了无法在代理后执行git-svn提取的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我在做



<$>

我试图用git-svn来镜像svn repo。 p $ p> git svn clone http://worldwind31.arc.nasa.gov/svn/trunk/WorldWind

我得到

 在f:/ gstest / WorldWind / .git / 
RA层请求失败:'/ svn / trunk / WorldWind'上的PROPFIND请求失败:'/ svn / trunk / WorldWind'的PROPFIND:无法连接到服务器(http://worldwind31.arc。 nasa.gov)at /usr/lib/perl5/site_perl/Git/SVN.pm line 148

如果我在另一台不在代理内的计算机上做同样的事情,那也没问题。



我在win7上,并且设置了 $ HTTP_PROXY http .proxy (全局在git中)和 $ HOME / AppData / Roaming / Subversion / servers 到正确的代理。

在shell中执行 svn checkout [回购地址]
在shell中执行 wget [repo adress]
但不是 git svn clone [回购地址]



任何想法?我发现的大多数问题都指向了 Subversion / servers 文件,但现在我已经编辑了那个文件,问题仍然存在......: / b>

解决方案

我有完全相同的问题。



解决方案是找到正确的Subversion配置目录。至少在我的情况下,本地 svn.exe 使用文件 C:\ Users \MYUSER\AppData\Roaming\Subversion\\ \\服务器,但 git-svn 使用〜/ .subversion / servers 。我的意思是这个路径〜/ .subversion / servers 在Git Bash shell中,其中向右扩展位置。编辑〜/ .subversion / servers svn.exe 使用的另一个相同,然后 git svn clone 应该可以工作。

简而言之,关键是找到正确的配置文件进行编辑,因为您可能有多个他们在Windows中。


I'm trying to mirror a svn repo using git-svn.

I'm doing

git svn clone http://worldwind31.arc.nasa.gov/svn/trunk/WorldWind

And I'm getting

Initialized empty Git repository in f:/gstest/WorldWind/.git/
RA layer request failed: PROPFIND request failed on '/svn/trunk/WorldWind': PROPFIND of '/svn/trunk/WorldWind': could not connect to server (http://worldwind31.arc.nasa.gov) at /usr/lib/perl5/site_perl/Git/SVN.pm line 148

If I do the same on another computer that isn't within the proxy it's ok.

I'm on a win7, and I've set $HTTP_PROXY, http.proxy (the global one in git) and $HOME/AppData/Roaming/Subversion/servers to the correct proxy.

Doing svn checkout [repo adress] in a shell works. Doing wget [repo adress] in a shell works. But not git svn clone [repo adress]

Any ideas? Most of the questions I've found on this points me to the Subversion/servers file, but now I've edited that one and the problem is still there... :/

解决方案

I had the exact same problem.

And the solution is finding the correct Subversion configuration directory. At least in my case the native svn.exe uses the file C:\Users\MYUSER\AppData\Roaming\Subversion\servers, but git-svn uses ~/.subversion/servers. And I mean this path ~/.subversion/servers in the Git Bash shell, where ~ is expanded to the right location. Edit ~/.subversion/servers the same way as the other one used by svn.exe and then git svn clone should work.

In short, the key is finding the right configuration file to edit, as you may have multiple of them in Windows.

这篇关于无法在代理后执行git-svn提取的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆