Re: [PATCH 1/7] fast-export: Omit tags that tag trees
- From
Jeff King <peff@peff.net>
- Date
- Jun 20, 2009, 17:31 UTC
- Message-ID
- <20090620173128.GE31022@coredump.intra.peff.net>
- In-Reply-To
- <1245472623-28103-2-git-send-email-newren@gmail.com>
On Fri, Jun 19, 2009 at 10:36:57PM -0600, newren@gmail.com wrote:
Show 6 quoted lines
> From: Elijah Newren <newren@gmail.com> > > Commit c0582c53bcf4e83bba70e1ad23abbad31f96ebc8 introduced logic to just > omit tags that point to tree objects. However, a case was missed > resulting in a tag being output which pointed at "mark :0", which would > cause fast-import to crash.
Do we really want to disallow tags pointing to trees? There is at least one well-known case in use (kernel v2.6.11).
Also, (and I haven't investigated at all), this sounds like the same issue we have with tags pointing to tags. IOW, everything referenceable should be given a mark, but it is not currently. I posted a "how about this" patch for the tag case here:
http://article.gmane.org/gmane.comp.version-control.git/119245
but I never got around to following it up with tests. Could you do something similar for the tree case?
-Peff