linux - git-svn 忽略 http 代理 (debian)

标签 linux proxy git-svn

搜索如何通过代理使用 git 我发现了两个解决方案:

  • http_proxy 环境变量
  • git 配置 http.proxy

export http_proxy=http://proxy.fqdn:8080制作wget工作,但不git-svn ,我另外尝试了第二个选项:git config --global http.proxy <a href="http://proxy.fqdn:8080" rel="noreferrer noopener nofollow">http://proxy.fqdn:8080</a> 。但没有成功。 Wireshark 仍然告诉我 git-svn 直接联系远程存储库。唉:

git svn clone -s http://svn.wp-plugins.org/yak-for-wordpress 
ZM-Schicht Anforderung gescheitert: OPTIONS von »http://svn.wp-plugins.org/yak-for-wordpress«: Konnte keine Verbindung zum Server herstellen (http://svn.wp-plugins.org) at /usr/lib/git-core/git-svn line 1916

我是否遗漏了什么,或者这是 git-svn 中的错误?有人尝试通过代理成功克隆 svn 存储库吗?

最佳答案

确保您不必指定用户名和密码(除了代理地址之外)。

但也要考虑将相同的信息 (http.proxy) 添加到 SVN 本身(如 this thread ):

Adding proxy information in the [global] section in $HOME/.subversion/servers fixed the issue.

关于linux - git-svn 忽略 http 代理 (debian),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9057111/

相关文章:

linux - 如何遍历linux内核中文件地址空间的页缓存树(基数树)

linux - 显示到标准输出并将最后一行设置为变量

linux - 如何解决 "setsockopt(3, SOL_SOCKET, SO_MARK, [10], 4) = -1 EPERM"非 root 用户操作被拒绝

javascript - 在 NodeJS 上实现高性能代理

python - 使用 sphinx 生成文档时如何禁用 ssl 验证? (在代理后面工作)

git - 在本地从 git 中删除一个目录

python - 故意导致读/写超时?

networking - 如何关闭 wget 代理?

git - 删除了 2 个月的 Git 工作。如何让他们回来?

git - 使用 git-filter-branch 提取多个目录