Gentoo Archives: gentoo-scm

From: "Robin H. Johnson" <robbat2@g.o>
To: gentoo-scm@l.g.o
Subject: Re: [gentoo-scm] Current status of cvs to git migrartion
Date: Mon, 26 Oct 2009 21:08:36
In Reply to: Re: [gentoo-scm] Current status of cvs to git migrartion by Arun Raghavan
On Mon, Oct 26, 2009 at 02:24:40PM +0530, Arun Raghavan wrote:
> Spent a short while looking at this. As Robin pointed out, there's > post-upload support in upstream git so basing this off that should be > reasonably straightforward. > > I got a little lost with regards to exactly why we we're doing this, > so will figure things out and get on this (hoping to get some time to > attack this in the next 2 weeks).
The body of the pre-upload hook is basically going to function like this: ==== if(pull is an update) then // allow elseif(pull is an initial clone) then // deny, instruct to use the initial Git bundle, give URL. end ==== Because doing an initial clone: - is not restartable (bundles via HTTP/rsync are) - causes a lot of server load - is not always optimally packed - is a huge download. We fully intend to deny initial full clones. Shallow clones we will probably allow (they look different in the pre-upload stage). -- Robin Hugh Johnson Gentoo Linux: Developer, Trustee & Infrastructure Lead E-Mail : robbat2@g.o GnuPG FP : 11AC BA4F 4778 E3F6 E4ED F38E B27B 944E 3488 4E85