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

ab/fsck-unexpected-type

From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Date
Oct 1, 2021, 12:08 UTC
Message-ID
<87y27dq70e.fsf@evledraar.gmail.com>
In-Reply-To
<xmqqh7e18soj.fsf@gitster.g>
On Thu, Sep 30 2021, Junio C Hamano wrote:

[Forgot to adjust the subject for https://lore.kernel.org/git/8735plrlql.fsf@evledraar.gmail.com/]

Show 23 quoted lines
> * ab/fsck-unexpected-type (2021-09-30) 17 commits
>  - fsck: report invalid object type-path combinations
>  - fsck: don't hard die on invalid object types
>  - object-file.c: stop dying in parse_loose_header()
>  - object-file.c: return ULHR_TOO_LONG on "header too long"
>  - object-file.c: use "enum" return type for unpack_loose_header()
>  - object-file.c: simplify unpack_loose_short_header()
>  - object-file.c: make parse_loose_header_extended() public
>  - object-file.c: return -1, not "status" from unpack_loose_header()
>  - object-file.c: don't set "typep" when returning non-zero
>  - cat-file tests: test for current --allow-unknown-type behavior
>  - cat-file tests: add corrupt loose object test
>  - cat-file tests: test for missing/bogus object with -t, -s and -p
>  - cat-file tests: move bogus_* variable declarations earlier
>  - fsck tests: test for garbage appended to a loose object
>  - fsck tests: test current hash/type mismatch behavior
>  - fsck tests: refactor one test to use a sub-repo
>  - fsck tests: add test for fsck-ing an unknown type
>
>  "git fsck" has been taught to report mismatch between expected and
>  actual types of an object better.
>
>  Will merge to 'next'?

I re-rolled a v10 that hopefully gets rid of the last bugs in the recent updates: https://lore.kernel.org/git/cover-v10-00.17-00000000000-20211001T091051Z-avarab@gmail.com/; I think it should be ready.

Previous: Ævar Arnfjörð BjarmasonNext: Ævar Arnfjörð Bjarmason
Message 8 of 15 in “What's cooking in git.git (Sep 2021, #09; Thu, 30)”
  1. Junio C HamanoOct 1, 2021
  2. en/removing-untracked-fixes [Was: Re: What's cooking in git.git (Sep 2021, #09; Thu, 30)]Elijah Newren, Oct 1, 2021
  3. Ævar Arnfjörð BjarmasonOct 1, 2021
  4. Junio C HamanoOct 1, 2021
  5. en/remerge-diff [Was: Re: What's cooking in git.git (Sep 2021, #09; Thu, 30)]Elijah Newren, Oct 1, 2021
  6. Jeff KingOct 1, 2021
  7. Ævar Arnfjörð BjarmasonOct 1, 2021
  8. ab/fsck-unexpected-typeÆvar Arnfjörð Bjarmason, Oct 1, 2021
  9. ab/parse-options-cleanupÆvar Arnfjörð Bjarmason, Oct 1, 2021
  10. ab/sanitize-leak-ci & more leak fixes soon-or-notÆvar Arnfjörð Bjarmason, Oct 1, 2021
  11. Jeff HostetlerOct 1, 2021
  12. ab/refs-errno-cleanupÆvar Arnfjörð Bjarmason, Oct 1, 2021
  13. ab/align-parse-options-help & ab/help-config-varsÆvar Arnfjörð Bjarmason, Oct 1, 2021
  14. ab/lib-subtestÆvar Arnfjörð Bjarmason, Oct 1, 2021
  15. ab/config-based-hooks-1Ævar Arnfjörð Bjarmason, Oct 1, 2021

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.