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

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

From
Ramkumar Ramachandra <artagnon@gmail.com>
Date
Aug 20, 2010, 06:15 UTC
Message-ID
<20100820061459.GB12794@kytes>
In-Reply-To
<15347445.117294.1282265669453.JavaMail.root@mail.hq.genarts.com>
Hi Stephen,
Stephen Bash writes:
Show 7 quoted lines
> Unfortunately I'm running into a problem with cloning the resulting repository.  Any git tags that are not associated with a live branch are declared invalid:
> 
>    error: refs/tags/tagFoo does not point to a valid object!
> 
> I've now reproduced this issue in micro (much easier to work with than the 20k commits in the real repo), and it does go away if I git checkout -b branchFoo tagFoo before cloning the repository.  I've examined the source repository, and the tag appears valid to me, as does the commit it points to.  The first error I see is during the clone.
> 
> Does this situation make sense to anyone?  If it's a potential bug (rather than user error), I can submit my testcase.  I'm currently working with git 1.7.2.1 on MacOS 10.6.4.

It seems too vague to me. Can you submit your testcase? Perhaps we can work from there?

-- Ram
Previous: Stephen BashNext: Stephen Bash
Message 2 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.