<HTML>
<HEAD>
<TITLE>Re: [Paraview] Git repository (mirror)</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>I believe there is a bug in git that causes the http transfer to fail when dealing with files above a certain size, and the ParaView repository has at least one such file. That said, I also am behind a firewall and I have found (well, been told) two methods that have worked for me. The first (and better but harder) solution is to set up a proxy for the git protocol. To do this, first set up a script that tunnels connections through an HTTP proxy. Copy the following into a file called git-proxy.sh.<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT SIZE="2"><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'>#!/bin/bash<BR>
( echo "CONNECT $1:$2 HTTP/1.0"; echo; cat ) | nc <I><proxy-host></I> <I><proxy-port></I> | ( read a; read a; cat )<BR>
</SPAN></FONT></FONT></BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
You will of course replace <I><proxy-host></I> and <I><proxy-port></I> with the host and port of your http proxy. Also keep in mind that this script is supposed to be exactly two lines (regardless of whether it has been broken up by an email program).<BR>
<BR>
Once you have this script, you then tell git to use it as the proxy for the git protocol. Execute this script once and it will put the necessary parameter in the global git configuration for your machine.<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT SIZE="2"><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'>git config --global core.gitproxy <I><path-to></I>/git-proxy.sh<BR>
</SPAN></FONT></FONT></BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
I have gotten this to work on Mac and Linux. I have not tried this on Windows.<BR>
<BR>
If you cannot get that to work, another method you can try is to get the data from github.com via ssh, which I presume your firewall will let through. To do this, do the following.<BR>
<BR>
</SPAN></FONT><OL><LI><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Create an account on github.com if you do not already have one.
</SPAN></FONT><LI><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Go to Account Settings -> Account Overview -> SSH Public Keys and add the public ssh key for your machine.
</SPAN></FONT><LI><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Go to the Kitware/ParaView repository on the github.com web site.
</SPAN></FONT><LI><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Click on the button to <B>fork</B> the repository. This will create a clone of the repository under your account.
</SPAN></FONT><LI><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>In your clone of the ParaView repository, you will see that there are more URL’s available to download the repository via git. Choose the <B>private</B> URL. It will have the form <a href="git@github.com:">git@github.com:</a><yourname>/ParaView.git. Although it looks like the regular git protocol, it is not. It is different. Underneath it uses the ssh protocol (I think).
</SPAN></FONT><LI><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Anyway, paste that URL to a git clone command on your local machine. As long as your ssh keys are set up correctly, you should be able to retrieve the repository.
</SPAN></FONT><LI><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Once you have a clone, you can create a new remote that points back to the original Kitware/ParaView repository. At this point you should be able to pull updates directly from the Kitware/ParaView repository through the http protocol so long as no one adds a large file.<BR>
</SPAN></FONT></OL><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
Hope that helps.<BR>
<BR>
-Ken<BR>
<BR>
<BR>
On 1/21/10 12:51 PM, "<a href="Bastil2001@yahoo.de">Bastil2001@yahoo.de</a>" <<a href="Bastil2001@yahoo.de">Bastil2001@yahoo.de</a>> wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>I am wondering if I am the only guy that has problems with the htt<BR>
checkot of this? I am behind a proxy....<BR>
<BR>
<BR>
Even if the clone only mentions the git: protocol, you can also use a<BR>
http transport.<BR>
<BR>
git://github.com/Kitware/ParaView.git<BR>
or<BR>
<a href="http://github.com/Kitware/ParaView.git">http://github.com/Kitware/ParaView.git</a><BR>
<BR>
_______________________________________________<BR>
Powered by www.kitware.com<BR>
<BR>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><BR>
<BR>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView">http://paraview.org/Wiki/ParaView</a><BR>
<BR>
Follow this link to subscribe/unsubscribe:<BR>
<a href="http://www.paraview.org/mailman/listinfo/paraview">http://www.paraview.org/mailman/listinfo/paraview</a><BR>
<BR>
<BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT><FONT SIZE="2"><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'><BR>
**** Kenneth Moreland<BR>
*** Sandia National Laboratories<BR>
*********** <BR>
*** *** *** email: <a href="kmorel@sandia.gov">kmorel@sandia.gov</a><BR>
** *** ** phone: (505) 844-8919<BR>
*** web: <a href="http://www.cs.unm.edu/~kmorel">http://www.cs.unm.edu/~kmorel</a><BR>
</SPAN></FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT>
</BODY>
</HTML>