From: Junio C Hamano Date: Tue, 02 Dec 2008 01:31:16 GMT Subject: Re: [PATCH 5/6 (v2)] upload-pack: send the HEAD information Message-ID: <7vk5ajqs63.fsf@gitster.siamese.dyndns.org> In-Reply-To: <20081201174414.GA22185@coredump.intra.peff.net> Jeff King writes: > On Mon, Dec 01, 2008 at 06:12:54AM -0800, Junio C Hamano wrote: > >> + packet_write(1, "%s %s%c%s%c%s\n", sha1_to_hex(sha1), refname, >> + 0, capabilities, 0, target); > > Yuck. My two complaints are: > > (1) this implicitly handles only the HEAD symref. But this information *is* on the "40-hex name" line that describes the HEAD ;-) You can trivially extend it to add this to other symbolic refs if you are interested. I wasn't.