Re: bugreport: "git config --global" fails if an invalid .git file present
- From
- Jinwook 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!