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

Re: Tags, Grafts, and Clones, oh my!

From
SBStephen Bash <bash@genarts.com>
Date
Aug 20, 2010, 14:40 UTC
Message-ID
<5054888.117464.1282315250235.JavaMail.root@mail.hq.genarts.com>
In-Reply-To
<20100820133925.GE9448@kytes>
> Thanks for the testcase! Offhand, it definitely looks like a bug. I'm
> investigating to figure out which part of the chain is at fault.
No problem.  I was very happily to isolate it outside the large repo I was working with...
Contrary to my first e-mail, 'git checkout -b branchFoo tagFoo' doesn't solve the problem...  My guess is I got lazy and did a "normal" local clone (no file URL) when I was testing.
Data from further testing:
  - doing a "normal" local clone doesn't emit the error
  - a remote clone over ssh does emit the error (so it's not just file:///)
  - in a brand new repo (init'ed, not cloned) 'git fetch ../foo refs/tags/tagFoo:refs/tags/tagFoo' fails:
      error: unable to find 28fffee... (sha of tag object)
  - in a brand new repo 'git fetch ../foo refs/heads/branchFoo:ref/heads/branchFoo' succeeds, and correctly fetches tagFoo  (where branchFoo is created via 'git checkout -b branchFoo tagFoo')

Thanks, Stephen

Previous: Ramkumar RamachandraNext: Stephen Bash
Message 5 of 7 in “Tags, Grafts, and Clones, oh my!”
  1. Stephen BashAug 20, 2010
  2. Ramkumar RamachandraAug 20, 2010
  3. Stephen BashAug 20, 2010
  4. Ramkumar RamachandraAug 20, 2010
  5. Stephen BashAug 20, 2010
  6. refs/original breaks git-clone for tags (was Re: Tags, Grafts, and Clones, oh my!)Stephen Bash, Aug 20, 2010
  7. Jonathan NiederSep 7, 2010

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.