View previous topic :: View next topic |
Author |
Message |
cubancigar11 Guru
Joined: 10 Jan 2005 Posts: 340
|
Posted: Fri Apr 14, 2006 3:23 pm Post subject: How to access a git repository from behind a proxy |
|
|
I want to access a git repository from behind a proxy (which requires authentication). How to do that? |
|
Back to top |
|
|
Mickael Advocate
Joined: 05 Sep 2005 Posts: 2387 Location: ~Belfort! - France - EU
|
Posted: Tue Apr 22, 2008 11:11 am Post subject: |
|
|
Hello,
I've got the same problem. Maybe it would be work with this solution :
http://lkml.org/lkml/2006/2/26/207
Quote: | 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
- |
I'don't get the socket command, where I can find it? _________________ À LIRE : COMMENT POSTER ET OBTENIR DE L'AIDE ?
Qui suis-je ? Bon j'ai relu, comme d'habitude, je suis bon a rien le vendredi
Qui suis-je ? Je ne serai jamais modo |
|
Back to top |
|
|
cubancigar11 Guru
Joined: 10 Jan 2005 Posts: 340
|
Posted: Tue Apr 22, 2008 11:59 am Post subject: |
|
|
Well... now I work at different place so I don't have this problem anymore Even if I had, the given solution wouldn't work because CONNECT was banned from my proxy. Probably a transparent proxy on my machine could have helped...
But anyway... the "socket" command is not present on my computer either, and Google doesn't help |
|
Back to top |
|
|
Ragas n00b
Joined: 17 Jun 2008 Posts: 5
|
Posted: Tue Jun 17, 2008 6:15 pm Post subject: |
|
|
I have the same problem. I think it's a really annoying one.
The "socket" command from this HowTo is only present in unbuntu. I haven't found anything similar for Gentoo.
The only way seems to be setting up a transparent proxy.
This would be the only programm under Linux that does not work together with my Proxy. Weak.
I would really appriciate it if someone was able to find another solution. |
|
Back to top |
|
|
|