Thread (4 messages) flat view 4 messages, 4 authors, 2016-06-15

Re: [PATCH] RFC: proxy-command support for git://

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:42:10

Paul Collins [off-list ref] writes:
I spend some of my time using a network that only allows outgoing TCP
connections to certain ports, and the git-daemon port is not one of them.
This patch below implements an analogue to ssh's ProxyCommand feature
for git, as a less messy alternative to ssh port forwarding.
Wonderful.
Questions:

* Can git already do this and I just failed to notice?
Maybe I just failed to notice this too, but I do not think so.
* Where should git_use_proxy() look?  Some git configuration file?
  An environment variable?  Both?  Somewhere else?
My preference is put something in .git/config to describe which
proxy command (maybe the same one with different argument) to
use depending on where you are going.  When you have internal
hosts and external hosts you would want this to apply only to
external hosts.  Maybe you have two or more gateways and
depending on which external host you are going you may want to
use different proxied connection.  On top of the config file,
making it overridable from an environment variable would be
sensible.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help