Re: Efficiency of initial clone from server
Show 27 quoted lines
> Theodore Tso <tytso@mit.edu> writes:
>
>> Even before we get Git 1.5.0 installed on master.kernel.org (and we
>> should really ask hpa to do that), is there a reason we haven't done
>> something like this across all of the kernel repo's on
>> master.kernel.org?
>>
>> for i in <list of kernel git repo's on master.kernel.org>
>> do
>> pushd $i
>> if [ ! -f objects/info/alternates ]; then
>> echo /pub/scm/linux/kernel/git/torvalds/linux-2.6.git/objects \
>> > objects/info/alternates
>> git repack -a -d -l
>> fi
>> popd
>> done
>
> Perhaps s/<list of kernel git repo's on master.kernel.org>/& minus a few/?
>
> "Minus a few" are (obviously) Linus's repository and bkcvs
> historical ones (I think there are two of them).
>
> Other than that I do not think of a major problem. Repacking
> into one would inconvenience http clients but that is not a new
> issue and would have happened when the owner of the individual
> repository chose to do so anyway.
So objects/info/http-alternates should be also set, I guess...
--
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git