* core.gitproxy and non-git protocols
@ 2007-08-02 5:21 David Symonds
2007-08-02 5:31 ` Shawn O. Pearce
2007-08-04 0:33 ` Jakub Narebski
0 siblings, 2 replies; 5+ messages in thread
From: David Symonds @ 2007-08-02 5:21 UTC (permalink / raw)
To: git
Hi,
The part of the git-config documentation that covers core. gitproxy is
incorrect: you can't use the core.gitproxy setting to use a proxy
command for ssh://, nor to create your own faux-protocols. In the
git_connect function (connect.c), it only references git_proxy_connect
(and thus the core.gitproxy setting) if (protocol == PROTO_GIT).
I have a situation where I'd like to push to a remote git repository
on a machine that is a little weird to access, so I need two different
types of ssh'ing to reach it depending on my location. That is easily
scriptable, which is how I did it with SVN (ended up with a
svn+voltron:// protocol), but is not currently possible with git.
It'd be great if (a) the documentation could be fixed, or (b) the
proxy-picking code could be at least extended to ssh:// protocols, and
preferrably extended to defining custom protocols.
Thanks,
Dave.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: core.gitproxy and non-git protocols
2007-08-02 5:21 core.gitproxy and non-git protocols David Symonds
@ 2007-08-02 5:31 ` Shawn O. Pearce
2007-08-04 0:34 ` Jakub Narebski
2007-08-04 0:33 ` Jakub Narebski
1 sibling, 1 reply; 5+ messages in thread
From: Shawn O. Pearce @ 2007-08-02 5:31 UTC (permalink / raw)
To: David Symonds; +Cc: git
David Symonds <dsymonds@gmail.com> wrote:
> It'd be great if (a) the documentation could be fixed, or (b) the
> proxy-picking code could be at least extended to ssh:// protocols, and
> preferrably extended to defining custom protocols.
Did you try setting GIT_SSH envvar to point to a script that does
what you need? I do this in one particular case...
--
Shawn.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: core.gitproxy and non-git protocols
2007-08-02 5:31 ` Shawn O. Pearce
@ 2007-08-04 0:34 ` Jakub Narebski
2007-08-04 5:43 ` Shawn O. Pearce
0 siblings, 1 reply; 5+ messages in thread
From: Jakub Narebski @ 2007-08-04 0:34 UTC (permalink / raw)
To: git
Shawn O. Pearce wrote:
> David Symonds <dsymonds@gmail.com> wrote:
>> It'd be great if (a) the documentation could be fixed, or (b) the
>> proxy-picking code could be at least extended to ssh:// protocols, and
>> preferrably extended to defining custom protocols.
>
> Did you try setting GIT_SSH envvar to point to a script that does
> what you need? I do this in one particular case...
GIT_SSH environmental variable is *not described* anywhere in the
documentation. Would you be so kind?
--
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: core.gitproxy and non-git protocols
2007-08-04 0:34 ` Jakub Narebski
@ 2007-08-04 5:43 ` Shawn O. Pearce
0 siblings, 0 replies; 5+ messages in thread
From: Shawn O. Pearce @ 2007-08-04 5:43 UTC (permalink / raw)
To: Jakub Narebski; +Cc: git
Jakub Narebski <jnareb@gmail.com> wrote:
> Shawn O. Pearce wrote:
> >
> > Did you try setting GIT_SSH envvar to point to a script that does
> > what you need? I do this in one particular case...
>
> GIT_SSH environmental variable is *not described* anywhere in the
> documentation. Would you be so kind?
Whow. It really isn't documented.
OK, I'll send a documentation patch in a few minutes.
--
Shawn.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: core.gitproxy and non-git protocols
2007-08-02 5:21 core.gitproxy and non-git protocols David Symonds
2007-08-02 5:31 ` Shawn O. Pearce
@ 2007-08-04 0:33 ` Jakub Narebski
1 sibling, 0 replies; 5+ messages in thread
From: Jakub Narebski @ 2007-08-04 0:33 UTC (permalink / raw)
To: git
[Cc: David Symonds <dsymonds@gmail.com>, gmane.comp.version-control.git]
David Symonds wrote:
> I have a situation where I'd like to push to a remote git repository
> on a machine that is a little weird to access, so I need two different
> types of ssh'ing to reach it depending on my location. That is easily
> scriptable, which is how I did it with SVN (ended up with a
> svn+voltron:// protocol), but is not currently possible with git.
See http://git.or.cz/gitwiki/GitTip, section "How to push/pull via ssh to
host behind gateway?". It describes two solutions: first, using
ProxyCommand option of ssh and netcat utility on gateway, second via ssh
tunnel set up.
--
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2007-08-04 5:43 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-02 5:21 core.gitproxy and non-git protocols David Symonds
2007-08-02 5:31 ` Shawn O. Pearce
2007-08-04 0:34 ` Jakub Narebski
2007-08-04 5:43 ` Shawn O. Pearce
2007-08-04 0:33 ` Jakub Narebski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).