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

Re: bug: conflicting core.bare setting causes segfault during bare clone

From
VJVusich, Joseph <jvusich@amazon.com>
Date
Mar 4, 2021, 11:48 UTC
Message-ID
<6962C073-60A9-4FCB-8FAA-02549A78547D@amazon.com>
In-Reply-To
<xmqq4khrg1qx.fsf@gitster.c.googlers.com>
> "brian m. carlson" <sandals@crustytoothpaste.net> writes:
> I will admit being a bit interested in how this was discovered, since it
> seems like an odd configuration to have, so if you can share, I'd
> appreciate it, if only to satisfy my curiosity.

Quite by accident. A machine-generated .gitconfig with some "default" values, which inadvertently included core.bare=false.

> "Junio C Hamano" <gitster@pobox.com> wrote:
> I had the same reaction.  Forcing everything to be bare is quite
> unusual.

Technically non-bare in this case, although the field seems to be ignored in the global config, at least prior to Git 2.30.0. In any case, it never had any observable effect, and was therefore never noticed.

Previous: Junio C HamanoNext: brian m. carlson
Message 4 of 10 in “bug: conflicting core.bare setting causes segfault during bare clone”
  1. Vusich, JosephMar 3, 2021
  2. brian m. carlsonMar 3, 2021
  3. Junio C HamanoMar 4, 2021
  4. Vusich, JosephMar 4, 2021
  5. builtin/init-db: handle bare clones when core.bare set to falsebrian m. carlson, Mar 8, 2021
  6. Eric SunshineMar 8, 2021
  7. brian m. carlsonMar 8, 2021
  8. builtin/init-db: handle bare clones when core.bare set to falsebrian m. carlson, Mar 10, 2021
  9. Junio C HamanoMar 10, 2021
  10. brian m. carlsonMar 10, 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.