Re: Cogito: cg-clone doesn't like packed tag objects
- From
Linus Torvalds <torvalds@osdl.org>
- Date
- Sep 27, 2005, 21:16 UTC
- Message-ID
- <Pine.LNX.4.58.0509271414000.3308@g5.osdl.org>
- In-Reply-To
- <7v64sm1hp3.fsf@assigned-by-dhcp.cox.net>
On Tue, 27 Sep 2005, Junio C Hamano wrote:
Show 6 quoted lines
> > 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
...
Show 6 quoted lines
> > 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 <dest>
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