git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: Jinwook Jeong <vustthat@gmail.com>
To: Jeff King <peff@peff.net>
Cc: Junio C Hamano <gitster@pobox.com>, git@vger.kernel.org
Subject: Re: bugreport: "git config --global" fails if an invalid .git file present
Date: Wed, 24 Aug 2022 20:34:19 +0900	[thread overview]
Message-ID: <CAA3Q-aZmn+K2n3PnLixLfAmf78FkQqCneBkzyd+edXMXSoy2MA@mail.gmail.com> (raw)
In-Reply-To: <xmqq35dtseht.fsf@gitster.g>

On Thu, Aug 18, 2022 at 3:16 PM Jeff King <peff@peff.net> 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!

      reply	other threads:[~2022-08-24 11:35 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-16 16:16 bugreport: "git config --global" fails if an invalid .git file present Jinwook Jeong
2022-08-18  6:16 ` Jeff King
2022-08-18 16:28   ` Junio C Hamano
2022-08-24 11:34     ` Jinwook Jeong [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: http://vger.kernel.org/majordomo-info.html

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAA3Q-aZmn+K2n3PnLixLfAmf78FkQqCneBkzyd+edXMXSoy2MA@mail.gmail.com \
    --to=vustthat@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.com \
    --cc=peff@peff.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).