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

follow-up: can't get any fsck msgid to fire for tags

From
XMXavier Morel <xavier.morel@masklinn.net>
Date
Aug 1, 2023, 16:13 UTC
Message-ID
<086FB120-911A-4660-8964-3CD585442049@masklinn.net>

Following the previous investigation of commits I figured I'd look at tags, and I'm wondering if I'm doing something wrong because going down the list I attempted to trigger 5 fsck diagnostics and got 0 to work.

My process is simple: create a loose object with an error in it e.g.
    object 00
    type blob
    name bad
    tagger a <a> 0 +0000
    msg

which has an invalid sha1 reference for the object and thus seems like it would trigger badObjectSha1[0].

Then run fsck on that object, enabling the msgid if it defaults to IGNORE or INFO, and look at the result.

- badObjectSha1: error in git show (fatal: bad object), fsck says
  "object could not be parsed" and "object missing"
- badTagName: the diag doesn't trigger at all
- badType: does error with "unknown tag type" (followed by "could not
  be parsed" and "object missing") but the msgid is never listed so I
  don't think this is from fsck
- extraHeaderEntry: "object could not be parsed" and "object missing"
  (also "bad object" from "git show", despite extraHeaderEntry being
  ignore by default so that's quite strange)
- missingObject: "object could not be parsed" and "object missing"
I'm really confused at this point.
Note: creating a ref for the annotated tag and fsck-ing the entire
repository sometimes generates different but not materially
better errors.
[0] https://git-scm.com/docs/git-fsck#Documentation/git-fsck.txt-codebadObjectSha1code
Message 1 of 1 in “follow-up: can't get any fsck msgid to fire for tags”
  1. Xavier MorelAug 1, 2023

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.