From: Jinwook Jeong Date: Wed, 24 Aug 2022 11:34:19 GMT Subject: Re: bugreport: "git config --global" fails if an invalid .git file present Message-ID: In-Reply-To: On Thu, Aug 18, 2022 at 3:16 PM Jeff King wrote: > 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!