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

Re: [Outreachy PATCH v6 1/3] environment: stop storing `core.attributesFile` globally

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 12, 2026, 17:13 UTC
Message-ID
<xmqqy0kxq3zt.fsf@gitster.g>
In-Reply-To
<7d9e0e9b-4565-492c-81b7-2471a916015e@gmail.com>
Phillip Wood <phillip.wood123@gmail.com> writes:
Show 13 quoted lines
> On 11/02/2026 16:46, Junio C Hamano wrote:
>> Phillip Wood <phillip.wood123@gmail.com> writes:
>> 
>> At the beginning of repo_config_values() in the patch, there is a
>> check to ensure that repo->initialized is true and otherwise you get
>> an error.  But the initialization is already done in the early part
>> of initialize_repository() as quoted above.  So I do not see what
>> difference it would make if we rewrote the last line as
>
> In Bello's patch there is a second assertion in repo_config_values() 
> that checks "repo == the_repository" and that one fails. I suggested 
> adding it because the config values are still global rather than per 
> repository so we should only be reading them from "the_repository".

Ah, OK. It may indeed be a good safety valve with the current codebase. I am not sure what the upgrade path would look like from there, though.

Thanks.
Previous: Phillip Wood
Message 8 of 8 in “Re: [Outreachy PATCH v6 1/3] environment: stop storing `core.attributesFile` globally”
  1. Bello Caleb OlamideFeb 10, 2026
  2. Phillip WoodFeb 10, 2026
  3. Bello OlamideFeb 11, 2026
  4. Phillip WoodFeb 11, 2026
  5. Bello OlamideFeb 11, 2026
  6. Junio C HamanoFeb 11, 2026
  7. Phillip WoodFeb 12, 2026
  8. Junio C HamanoFeb 12, 2026

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.