Re: [PATCH 1/7] fast-export: Omit tags that tag trees
From: Jeff King <hidden>
Date: 2016-06-15 22:46:58
On Fri, Jun 19, 2009 at 10:36:57PM -0600, newren@gmail.com wrote:
From: Elijah Newren <redacted> 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