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

Re: bugreport: "git config --global" fails if an invalid .git file present

From
JJJinwook Jeong <vustthat@gmail.com>
Date
Aug 24, 2022, 11:34 UTC
Message-ID
<CAA3Q-aZmn+K2n3PnLixLfAmf78FkQqCneBkzyd+edXMXSoy2MA@mail.gmail.com>
In-Reply-To
<xmqq35dtseht.fsf@gitster.g>
On Thu, Aug 18, 2022 at 3:16 PM Jeff King <peff@peff.net> wrote:
Show 5 quoted lines
> I agree this isn't entirely friendly, but I think things are working as
> designed. Even though you're only asking to change global config, we do
> still speculatively check for a repository when running git-config at
> all, as various options could impact its behavior. So the backtrace
> looks like this:

I didn't know that a local repository could affect the result of "git config --global".

Thank you for the detailed explanation!
Previous: Junio C Hamano
Message 4 of 4 in “bugreport: "git config --global" fails if an invalid .git file present”
  1. Jinwook JeongAug 16, 2022
  2. Jeff KingAug 18, 2022
  3. Junio C HamanoAug 18, 2022
  4. Jinwook JeongAug 24, 2022

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.