Re: git clone downloads objects that are in GIT_OBJECT_DIRECTORY

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Shawn Pearce <spearce@xxxxxxxxxxx> writes:

> Benjamin LaHaise <bcrl@xxxxxxxxx> wrote:
>> Hi folks,
>> 
>> Doing a fresh git clone git://some.git.url/ foo seems to download the 
>> entire remote repository even if all the objects are already stored in 
>> GIT_OBJECT_DIRECTORY=/home/bcrl/.git/object .  Is this a known bug?  
>> At 100MB for a kernel, this takes a *long* time.
>
> I believe it is a known missing feature.  :-) git-clone doesn't
> prep HEAD to have some sort of starting point so the pull it uses
> to download everything literally downloads everything as nothing
> is in common.

You would first 'clone -l -s' from your local repository and
then clone into that from whatever remote, perhaps.

-
: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]