git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Git --reference bug(?)

From
Michael Haggerty <mhagger@alum.mit.edu>
Date
Oct 19, 2011, 05:01 UTC
Message-ID
<4E9E59A7.7070307@alum.mit.edu>
In-Reply-To
<CAK-xaQaUxJ5c_kN48g7-J9fosDv6awbAFQSFLpF2fA+hc-i-MA@mail.gmail.com>
On 10/19/2011 12:04 AM, Andrea Gelmini wrote:
Show 5 quoted lines
> git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
> /tmp/3.1 --reference /home/gelma/dev/kernel/linus/
> Cloning into /tmp/3.1...
> fatal: Reference has invalid format: 'refs/tags/3.1.1.1^{}'
> fatal: The remote end hung up unexpectedly
The upstream repo reports what look like non-reference references:

$ git ls-remote --tags git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git | head 5dc01c595e6c6ec9ccda4f6f69c131c0dd945f8c refs/tags/v2.6.11 c39ae07f393806ccf406ef966e9a15afc43cc36a refs/tags/v2.6.11^{} 5dc01c595e6c6ec9ccda4f6f69c131c0dd945f8c refs/tags/v2.6.11-tree c39ae07f393806ccf406ef966e9a15afc43cc36a refs/tags/v2.6.11-tree^{} 26791a8bcf0e6d33f43aef7682bdb555236d56de refs/tags/v2.6.12 9ee1c939d1cb936b1f98e8d81aeffab57bae46ab refs/tags/v2.6.12^{} 9e734775f7c22d2f89943ad6c745571f1930105f refs/tags/v2.6.12-rc2 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 refs/tags/v2.6.12-rc2^{} 0397236d43e48e821cce5bbe6a80a1a56bb7cc3a refs/tags/v2.6.12-rc3 a2755a80f40e5794ddc20e00f781af9d6320fafb refs/tags/v2.6.12-rc3^{} [...]

I've never seen this format before; is this the remote protocol for peeled refs or maybe the behavior of an old version of git?

Michael
-- 
Michael Haggerty
mhagger@alum.mit.edu
http://softwareswirl.blogspot.com/
Previous: Andrea GelminiNext: Junio C Hamano
Message 2 of 6 in “Git --reference bug(?)”
  1. Andrea GelminiOct 18, 2011
  2. Michael HaggertyOct 19, 2011
  3. Junio C HamanoOct 19, 2011
  4. Junio C HamanoOct 19, 2011
  5. Junio C HamanoOct 19, 2011
  6. Junio C HamanoOct 19, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.