我使用git svn与subversion repos同步:
$ mkdir prj && cd prj
$ git svn init http://url/to/repos/branches/experimental
$ git svn fetch
Run Code Online (Sandbox Code Playgroud)
并收到错误消息:
RA layer request failed: OPTIONS of 'http://url/to/repos/branches/experimental':
Could not read status line: connection was closed by proxy server
(http://url/to/repos) at /usr/bin/git-svn line 1352
Run Code Online (Sandbox Code Playgroud)
为什么以及如何解决这个问题?
通过代理访问SVN仓库时遇到了同样的问题.
我的解决方案是编辑~/.subversion/servers并添加所需的代理到该[globals]部分.取消对相关线(http-proxy-host,http-proxy-port,任选http-proxy-username和http-proxy-password),并有输入所需的信息.
这是必需的,因为git svn使用存储的设置~/.subversion/servers来访问SVN存储库.