Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

RA layer request failed while git-svn fetch

Tags:

git-svn

I use git svn to sync with the subversion repos:

$ mkdir prj && cd prj
$ git svn init http://url/to/repos/branches/experimental
$ git svn fetch

and got the error message:

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

Why and how can I fix this?

like image 384
okidogi Avatar asked Apr 15 '09 02:04

okidogi


2 Answers

I had the same issue when accessing a SVN repo through a proxy.

The solution for me was to edit ~/.subversion/servers and add the needed proxy to the [globals] section. Uncomment the relevant lines (http-proxy-host, http-proxy-port, optionally http-proxy-username and http-proxy-password) and enter the needed information there.

This is needed because git svn uses the settings stored in ~/.subversion/servers to access SVN repositories.

like image 99
eckes Avatar answered Nov 08 '22 00:11

eckes


It seems like this is a timeout issue on the server. Here's one bug report (I can't access the ticket it's a duplicate of, unfortunately). It's happening a lot to me, but if I just try the command again, it gets a little farther before timing out again. Eventually, I'll have the whole repository, and won't have to do this again, I hope.

like image 40
Nate Parsons Avatar answered Nov 08 '22 00:11

Nate Parsons