Cloning mantis git from behind firewall

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
dregad
Developer
Posts: 75
Joined: 26 Jul 2010, 14:24

Cloning mantis git from behind firewall

Post by dregad »

Dear all,

I am trying to get the mantis code from git as documented in http://www.mantisforge.org/dev/manual/m ... opers.html

So I installed the git package on my linux box no problem so far, but when I try to clone I get an error

Code: Select all

$ git clone git://mantisbt.org/mantisbt.git
Initialized empty Git repository in /home/m141016/mantisbt/.git/
mantisbt.org[0: 209.20.94.10]: errno=Connection timed out
fatal: unable to connect a socket (Connection timed out)
Being in the office, I suppose this is caused by the corporate firewall / proxy server not allowing traffic to go through.

I asked my friend Google, but without much luck despite trying multiple things in setting up a proxy (with $http_proxy variable, or using git config --global http.proxy, etc). Then I saw this http://rip747.wordpress.com/2008/09/12/ ... -who-knew/ and so I tried to access the repository via http:

Code: Select all

$ git clone http://mantisbt.org/mantisbt.git
Initialized empty Git repository in /home/m141016/mantisbt/.git/
fatal: http://mantisbt.org/mantisbt.git/info/refs not found: did you run git update-server-info on the server?
I don't have much hope of having our network team change the proxy settings to enable git. So:
  • Is there any chance for enabling http protocol ?
  • If not, can you recommend any alternative way for me to get the repository ?
Thanks in advance
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Cloning mantis git from behind firewall

Post by atrol »

You should post this also to developer mailing list of MantisBT
Please use Search before posting and read the Manual
dregad
Developer
Posts: 75
Joined: 26 Jul 2010, 14:24

Re: Cloning mantis git from behind firewall

Post by dregad »

I will do. Thanks for replying !
dregad
Developer
Posts: 75
Joined: 26 Jul 2010, 14:24

Re: Cloning mantis git from behind firewall

Post by dregad »

Thanks to one of my colleagues who asked me why I was not socksifying git, I found a solution to my problem, by searching for "git socks" instead of "git proxy" and countless variants.

http://threebytesfull.com/2008/04/git-w ... out-proxy/

Obviously you need to have a socks server for this.
dregad
Developer
Posts: 75
Joined: 26 Jul 2010, 14:24

Re: Cloning mantis git from behind firewall

Post by dregad »

As an alternative, I also noticed that there is a clone of the git repository accessible via HTTP protocol, on http://github.com/mantisbt/mantisbt.git.

Doing a clone from this source over http, is obviously much faster than the same operation through socks (41" vs 2'15"). But the repository on github is readonly (which I guess is not an issue for me as I do not have write access to the main one anyway ;))
Post Reply