git-svn and http proxy?

1,308 views
Skip to first unread message

Jeroen Janssen

unread,
Apr 18, 2008, 6:59:55 AM4/18/08
to msysGit
Hi,

I was wondering where to specify that git svn should use a http proxy
for accessing http based svn repositories.

I have used the 'native' svn through a proxy server, so it should be
possible.
I just don't know exactly where to specify this in the msysGit
environment.

Any thoughts?

Best regards,

Jeroen Janssen

Clifford Caoile

unread,
Apr 18, 2008, 7:27:05 AM4/18/08
to jeroen....@gmail.com, msysGit
Hello:

On Fri, Apr 18, 2008 at 7:59 PM, Jeroen Janssen
<jeroen....@gmail.com> wrote:
> I was wondering where to specify that git svn should use a http proxy
> for accessing http based svn repositories.

Personally I have no experience with this situation, but IIRC, git-svn
is a Perl script that calls the Perl bindings for Subversion for
network access. Therefore it should use the Subversion-style proxy
definitions [1]. Since msysgit uses msys, it may not be under the
Windows area, but Unix area (${HOME}/.subversion). Please report what
is the behavior.

> I have used the 'native' svn through a proxy server, so it should be
> possible.
> I just don't know exactly where to specify this in the msysGit
> environment.

There are many ways to specify http proxy settings for git commands. I
know of env vars http_proxy and no_proxy because of curl. There is
also config http.proxy, config remote.<name>.proxy, and core.gitproxy.
However, I do not believe they apply to git svn as explained above.

References:
[1] http://subversion.tigris.org/faq.html#proxy

Best regards,
Clifford Caoile

Jeroen Janssen

unread,
Apr 18, 2008, 9:11:38 AM4/18/08
to pi...@users.sourceforge.net, msysGit
Hi,

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

Although I still have some problems with a https repository, I was
able to git svn clone a http repository through the proxy server.

Best regards,

Jeroen Janssen

Clifford Caoile

unread,
Apr 18, 2008, 9:27:53 AM4/18/08
to Jeroen Janssen, msysGit
Hi:

On Fri, Apr 18, 2008 at 10:11 PM, Jeroen Janssen
<jeroen....@gmail.com> wrote:
> Adding proxy information in the [global] section in
> $HOME/.subversion/servers fixed the issue.

Thank you for confirming this information. Cheers (^_^)/

If I may make a (possibly unrelated or unneeded) suggestion: Perhaps
instead of directly cloning a remote svn repo via git svn, one could
try cloning the remote svn repo to a local svn repo using svnsync (in
Subversion 1.4) first, then git svn the local repo. This may improve
performance. However, I am unsure if this will work when attempting to
push back upstream to the remote svn repo, so it could be useful only
for read-only scenarios.

Just an untested thought. :-]

Best regards,
Clifford Caoile

Reply all
Reply to author
Forward
0 new messages