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

Re: bug: 'core.logallrefupdates' is not set by default in non-bare repository

From
Jeff King <peff@peff.net>
Date
Aug 31, 2016, 10:48 UTC
Message-ID
<20160831104825.quyqb54bo5k7fdxs@sigill.intra.peff.net>
In-Reply-To
<1472634746.4265.47.camel@kaarsemaker.net>
On Wed, Aug 31, 2016 at 11:12:26AM +0200, Dennis Kaarsemaker wrote:
> That is indeed a bug. git reads the config of t1 and then thinks a
> template config has set that value, so it won't override it.

This is a regression in v2.9.0 due to my ae5f677 (lazily load core.sharedrepository, 2016-03-11).

> This is caused by git init reading the config via
> get_shared_repository. The comment above it indicates that this may not
> be needed, and indeed not doing it makes this bug go away.

Hrm. I'm not sure if that will work, though, because we may call get_shared_repository() from other code-paths (e.g., anything that calls adjust_shared_perm(), like safe_create_leading_directories).

We may need to do something like turn off the need_shared_repository_from_config in init-db, since I think it would not want to ever read from the default config sources in most of its code-paths (OTOH, it should in theory respect core.sharedRepository in ~/.gitconfig, so maybe there is another more elegant way of handling this).

I'm out of time for the day, so it will be a while before I can dig further. Please feel free to figure it out while I am sleeping. :)

-Peff
Previous: Dennis KaarsemakerNext: Dennis Kaarsemaker
Message 3 of 8 in “bug: 'core.logallrefupdates' is not set by default in non-bare repository”
  1. doakAug 31, 2016
  2. Dennis KaarsemakerAug 31, 2016
  3. Jeff KingAug 31, 2016
  4. Dennis KaarsemakerAug 31, 2016
  5. Jeff KingSep 2, 2016
  6. Jeff KingSep 2, 2016
  7. Dennis KaarsemakerSep 2, 2016
  8. Jeff KingSep 2, 2016

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.