<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. &nbsp;That said, I also am behind a firewall and I have found (well, been told) two methods that have worked for me. &nbsp;The first (and better but harder) solution is to set up a proxy for the git protocol. &nbsp;To do this, first set up a script that tunnels connections through an HTTP proxy. &nbsp;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 &quot;CONNECT $1:$2 HTTP/1.0&quot;; echo; cat ) | nc <I>&lt;proxy-host&gt;</I> <I>&lt;proxy-port&gt;</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>&lt;proxy-host&gt;</I> and <I>&lt;proxy-port&gt;</I> with the host and port of your http proxy. &nbsp;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. &nbsp;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>&lt;path-to&gt;</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. &nbsp;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. &nbsp;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 -&gt; Account Overview -&gt; 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. &nbsp;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&#8217;s available to download the repository via git. &nbsp;Choose the <B>private</B> URL. &nbsp;It will have the form <a href="git@github.com:">git@github.com:</a>&lt;yourname&gt;/ParaView.git. &nbsp;Although it looks like the regular git protocol, it is not. &nbsp;It is different. &nbsp;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. &nbsp;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. &nbsp;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, &quot;<a href="Bastil2001@yahoo.de">Bastil2001@yahoo.de</a>&quot; &lt;<a href="Bastil2001@yahoo.de">Bastil2001@yahoo.de</a>&gt; 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>
&nbsp;&nbsp;&nbsp;**** &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Kenneth Moreland<BR>
&nbsp;&nbsp;&nbsp;&nbsp;*** &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sandia National Laboratories<BR>
*********** &nbsp;<BR>
*** *** *** &nbsp;email: <a href="kmorel@sandia.gov">kmorel@sandia.gov</a><BR>
** &nbsp;*** &nbsp;** &nbsp;phone: (505) 844-8919<BR>
&nbsp;&nbsp;&nbsp;&nbsp;*** &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;web: &nbsp;&nbsp;<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>