[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: cloning gnulib from behind a firewall
From: |
Ben Abbott |
Subject: |
Re: cloning gnulib from behind a firewall |
Date: |
Thu, 9 Sep 2010 09:52:37 -0400 |
On Sep 8, 2010, at 10:02 PM, Eric Blake wrote:
> On 09/08/2010 01:00 PM, Ben Abbott wrote:
>> I'd like to clone gnulib from behind my company's firewall.
>>
>> The ports for git and cvs are closed, so I tried http, and obtained the
>> error below.
>>
>> export http_proxy=...
>> git clone http://git.savannah.gnu.org/gnulib.git
>> Cloning into gnulib...
>> fatal: http://git.savannah.gnu.org/gnulib.git/info/refs not found: did
>> you run git update-server-info on the server?
>>
>> I'm a novice regarding git, but this looks to me like my problem requires a
>> solution on the savannah end, correct?
>
> Yes, savannah would have to set up an http server. But have no fear - the
> people at repo.or.cz have already set up a clone that mirrors the savannah
> repository (browse it at http://repo.or.cz/w/gnulib.git), and that mirror
> provides http service that is usually less than an hour or two behind
> savannah. So you can instead clone from:
>
> git clone http://repo.or.cz/r/gnulib.git
>
> In fact, I've set up several mirrors on repo.or.cz precisely because I used
> to work at a job where I was behind a firewall that allowed only http access.
> And I found it helpful to do something like:
>
> git config --global url.http://repo.or.cz/r/.insteadof \
> git://git.sv.gnu.org:/srv/git/
>
> such that cloning other projects like coreutils.git and running bootstrap
> would then automatically rewrite the submodule URLs to likewise pull from the
> same location.
>
> --
> Eric Blake address@hidden +1-801-349-2682
> Libvirt virtualization library http://libvirt.org
Thanks Eric.
Cloning from ...
git clone http://repo.or.cz/r/gnulib.git
worked nicely. I liked the "insteadof" suggestion, but when I tried it I got
the same error as before ... even though ~/.gitconfig has the substitution in
it.
Does the "insteadof" functionality work for git version 1.7.2.2 when cloning?
Ben