From: Ben Knoble <ben.knoble@gmail.com>
To: Hendrik Jaeger <ml_git@henk.geekmail.org>
Cc: git@vger.kernel.org
Subject: Re: git config: unintuitive behaviour with --global and --no-includes
Date: Mon, 20 Jul 2026 08:25:39 -0400 [thread overview]
Message-ID: <A5FBF044-4F91-456D-AD17-C3047DA0F973@gmail.com> (raw)
In-Reply-To: <20260720113402.0dc16abe@frustcomp.hnjs.home.arpa>
> Le 20 juil. 2026 à 06:02, Hendrik Jaeger <ml_git@henk.geekmail.org> a écrit :
>
> Hi
>
> I ran into a problem working with lbmk (https://codeberg.org/libreboot/lbmk).
> To see whether git is correctly configured, it runs `git config --global user.name` and that failed for my setup.
> The reason is that I have user.name and user.email not directly in the normal git config file but in an included file and when given a scope like --global `git config` does not by default check included files.
[snip]
> Regarding the initial issue: I just added --includes to the call in lbmk and it works just fine, so there is no need to address this.
I wonder why not use « git config user.name » without scope? That seems to sidestep the problem. Unless there’s a reason to use global-scope only? There’s also « git var GIT_AUTHOR_IDENT ».
next prev parent reply other threads:[~2026-07-20 12:25 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-20 9:34 git config: unintuitive behaviour with --global and --no-includes Hendrik Jaeger
2026-07-20 12:25 ` Ben Knoble [this message]
2026-07-20 12:51 ` Jeff King
2026-07-20 17:09 ` Junio C Hamano
2026-07-21 11:53 ` Hendrik Jaeger
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=A5FBF044-4F91-456D-AD17-C3047DA0F973@gmail.com \
--to=ben.knoble@gmail.com \
--cc=git@vger.kernel.org \
--cc=ml_git@henk.geekmail.org \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox