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

Re: git 2.46.0 crashes when trying to verify-pack outside of a repo

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 3, 2024, 15:52 UTC
Message-ID
<xmqqv7zcn39t.fsf@gitster.g>
In-Reply-To
<ZtXCBcn6WZIHr65b@tanuki>
Patrick Steinhardt <ps@pks.im> writes:
Show 7 quoted lines
>> I'd personally recommend just requiring the `--object-format=` option,
>> but of course if you want to write pack v5, don't let me stop you.
>
> Well, in the context of this issue I'd definitely aim for the easier fix
> first. Regardless of whether or not we introduce v5, we'd still have to
> address the underlying issue for repositories that do not (yet) have v5
> packfiles.

I would be hesitant to reroactively tightening the rules, though. If a tool has worked well for those who can and wants to assume a hash function (because it has been the default, or perhaps because the user configured the tool as such) even outside a repository, such a tightening is a regression. If such a change is done to avoid triggering a data corrupting bug, we may be able to come up with a valid justification, but on the other hand, to discourage certain uses of the tool, even if the discouraged use is an insecure one, feels a bit too opinionated for a tool. It has the same smell as updating the "md5sum" tool to discourage the use of the function so that it always exits with 1 (after computing and showing the hash) or something silly like that.

I am not saying that it is bad for a tool to be opinionated. When we design a new feature, it is part of the design process to make sure that use of the feature encourages use of better workflows.

But disabling what has worked to user's expectation so far is a bit different story.

Previous: Patrick SteinhardtNext: Patrick Steinhardt
Message 6 of 7 in “git 2.46.0 crashes when trying to verify-pack outside of a repo”
  1. Ilya KAug 31, 2024
  2. Junio C HamanoSep 1, 2024
  3. Patrick SteinhardtSep 1, 2024
  4. brian m. carlsonSep 2, 2024
  5. Patrick SteinhardtSep 2, 2024
  6. Junio C HamanoSep 3, 2024
  7. builtin/index-pack: fix segfaults when running outside of a repoPatrick Steinhardt, Sep 4, 2024

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.