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

Tags, Grafts, and Clones, oh my!

From
SBStephen Bash <bash@genarts.com>
Date
Aug 20, 2010, 00:54 UTC
Message-ID
<15347445.117294.1282265669453.JavaMail.root@mail.hq.genarts.com>
In-Reply-To
<29380346.117285.1282264933599.JavaMail.root@mail.hq.genarts.com>
Hi all-
I'm currently working on migrating my company's SVN repository to git.  Based on a conversation with Ram at the beginning of the summer, I'm using svn-fe plus a couple of my own scripts.  To create the git branches and tags from the svn-fe generated repo I clone a bunch of "mini-repos", which I subdirectory-filter, then git fetch the branches/tags from the mini-repos into a "fusion" repo where I graft everything back together, and finally one last filter-branch to permanently commit the grafts.
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.
Any ideas will be greatly appreciated!

Thanks, Stephen

Next: Ramkumar Ramachandra
Message 1 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.