From: Junio C Hamano Date: Mon, 12 Feb 2007 20:53:17 GMT Subject: Re: Efficiency of initial clone from server Message-ID: <7vd54f85du.fsf@assigned-by-dhcp.cox.net> In-Reply-To: <20070212193507.GA18730@thunk.org> Theodore Tso 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 > 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//& 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. Older clients do not understand the more efficient packfile format (delta-base-offset encoding) that can be used with recent git. The feature is not turned on by default and is controlled by configuration repack.usedeltabaseoffset. Whoever does the "git repack" above should make sure he does not enable it with his $HOME/.gitconfig.