From: Linus Torvalds Date: Tue, 27 Sep 2005 21:16:12 GMT Subject: Re: Cogito: cg-clone doesn't like packed tag objects Message-ID: In-Reply-To: <7v64sm1hp3.fsf@assigned-by-dhcp.cox.net> On Tue, 27 Sep 2005, Junio C Hamano wrote: > > The protocol extension I had in mind, which I said is not clean, > is from upload_pack(), in addition to the existing send_ref() > call which sends "object-name refname" list like this: > > 4899334e96a076bb8780968c5075b214aa80fab9 HEAD ... > > we could send phony entries like this: > > b92c9c07fe2d0d89c4f692573583c4753b5355d2 deref/tags/junio-gpg-pub > a3eb250f996bf5e12376ec88622c4ccaabf20ea8 deref/tags/v0.99 > 78d9d414123ad6f4f522ffecbcd9e4a7562948fd deref/tags/v0.99.1 Yes, it would work, but I really think that there's no downside to just having a git fetch --tags since that's just a few lines of trivial code, with no special cases. Otherwise: > We would need to teach git-clone and git-fetch to ignore deref/ > if they do not already do so. in general, it's just a really ugly special case, I think. Linus