All of lore.kernel.org
 help / color / mirror / Atom feed
* Git via a proxy server?
@ 2006-02-22 15:44 Salyzyn, Mark
  2006-02-22 19:22 ` Anderson Lizardo
  2006-02-23 14:10 ` Sergey Vlasov
  0 siblings, 2 replies; 4+ messages in thread
From: Salyzyn, Mark @ 2006-02-22 15:44 UTC (permalink / raw)
  To: Kernel Mailing List

Rsync protocol for git is not working for some reason when I pick up the
trees; apparently others share my experience. So I switched to the git
protocol. I can pick up the trees via git if I am outside Adaptec's
network, but inside I need to go through the proxy server.

Urls like:

git://proxyserver:8080/?url=git://git.kernel.org/pub/scm/linux/kernel/gi
t/jejb/
git://proxyserver:8080/?url=tcp://git.kernel.org/pub/scm/linux/kernel/gi
t/jejb/
git://proxyserver:8080/?url=git.kernel.org/pub/scm/linux/kernel/git/jejb
/

Doesn't even appear to hit the proxy server. MIS had opened up the port
directly as a test using:

git://git.kernel.org/pub/scm/linux/kernel/git/jejb/

worked fine, but it can not be a permanent arrangement. They have the
same port on the proxy server set up as well, but the logs indicate zero
hits.

Any ideas?

Sincerely -- Mark Salyzyn

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Git via a proxy server?
  2006-02-22 15:44 Git via a proxy server? Salyzyn, Mark
@ 2006-02-22 19:22 ` Anderson Lizardo
  2006-02-23 14:10 ` Sergey Vlasov
  1 sibling, 0 replies; 4+ messages in thread
From: Anderson Lizardo @ 2006-02-22 19:22 UTC (permalink / raw)
  To: Salyzyn, Mark; +Cc: Kernel Mailing List

On 2/22/06, Salyzyn, Mark <mark_salyzyn@adaptec.com> wrote:
> [...]
> Doesn't even appear to hit the proxy server. MIS had opened up the port
> directly as a test using:
>
> git://git.kernel.org/pub/scm/linux/kernel/git/jejb/
>
> worked fine, but it can not be a permanent arrangement. They have the
> same port on the proxy server set up as well, but the logs indicate zero
> hits.

Hi,

Try using the HTTP protocol. It's slower but usually works fine under
HTTP proxies:

export http_proxy=proxyserver:8080

git clone http://git.kernel.org/pub/scm/linux/kernel/git/jejb/

Regards,
--
Anderson Lizardo
Embedded Linux Lab - 10LE
Nokia Institute of Technology - INdT
Manaus - Brazil

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Git via a proxy server?
  2006-02-22 15:44 Git via a proxy server? Salyzyn, Mark
  2006-02-22 19:22 ` Anderson Lizardo
@ 2006-02-23 14:10 ` Sergey Vlasov
  2006-02-26 23:35   ` [OT] " Petr Vandrovec
  1 sibling, 1 reply; 4+ messages in thread
From: Sergey Vlasov @ 2006-02-23 14:10 UTC (permalink / raw)
  To: Salyzyn, Mark; +Cc: Kernel Mailing List

[-- Attachment #1: Type: text/plain, Size: 968 bytes --]

On Wed, 22 Feb 2006 10:44:23 -0500 Salyzyn, Mark wrote:

> Rsync protocol for git is not working for some reason when I pick up the
> trees; apparently others share my experience. So I switched to the git
> protocol. I can pick up the trees via git if I am outside Adaptec's
> network, but inside I need to go through the proxy server.

I have successfully used transconnect
(http://sourceforge.net/projects/transconnect) for tunnelling git
protocol through a HTTP proxy (squid in my case) supporting the CONNECT
method.

Git also supports the GIT_PROXY_COMMAND environment variable (or
core.gitproxy config option), through which you can specify a program to
be run instead of connecting to a TCP port - then you can use netcat for
connecting through proxy; however, I have not tried this.

Note: most HTTP proxy servers allow CONNECT method to a very limited
range of ports, and administrators will need to enable the git port
(9418) explicitly.

[-- Attachment #2: Type: application/pgp-signature, Size: 190 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [OT] Re: Git via a proxy server?
  2006-02-23 14:10 ` Sergey Vlasov
@ 2006-02-26 23:35   ` Petr Vandrovec
  0 siblings, 0 replies; 4+ messages in thread
From: Petr Vandrovec @ 2006-02-26 23:35 UTC (permalink / raw)
  To: Sergey Vlasov; +Cc: Salyzyn, Mark, Kernel Mailing List

Sergey Vlasov wrote:
> On Wed, 22 Feb 2006 10:44:23 -0500 Salyzyn, Mark wrote:
> 
> 
>>Rsync protocol for git is not working for some reason when I pick up the
>>trees; apparently others share my experience. So I switched to the git
>>protocol. I can pick up the trees via git if I am outside Adaptec's
>>network, but inside I need to go through the proxy server.
> 
> 
> I have successfully used transconnect
> (http://sourceforge.net/projects/transconnect) for tunnelling git
> protocol through a HTTP proxy (squid in my case) supporting the CONNECT
> method.
> 
> Git also supports the GIT_PROXY_COMMAND environment variable (or
> core.gitproxy config option), through which you can specify a program to
> be run instead of connecting to a TCP port - then you can use netcat for
> connecting through proxy; however, I have not tried this.

I know I'm comming kinda late, but I'm using:

export GIT_PROXY_COMMAND=/usr/local/bin/proxy-cmd.sh

and proxy-cmd.sh is just single-line command glued from what I found 
available in /bin:

#! /bin/bash

(echo "CONNECT $1:$2 HTTP/1.0"; echo; cat ) | socket 
proxy.ourcompany.com 3128 | (read a; read a; cat )

Replace socket's arguments 'proxy.ourcompany.com 3128' with your http 
proxy.  Fortunately our proxy does not see anything wrong with git's port.
				Best regards,
					Petr Vandrovec

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-02-26 23:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-22 15:44 Git via a proxy server? Salyzyn, Mark
2006-02-22 19:22 ` Anderson Lizardo
2006-02-23 14:10 ` Sergey Vlasov
2006-02-26 23:35   ` [OT] " Petr Vandrovec

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.