From: "Mantas Mikulėnas" <grawity@gmail.com>
To: git@vger.kernel.org
Subject: 2.38 "protected configuration" ignores includes
Date: Wed, 12 Oct 2022 09:16:19 +0300 [thread overview]
Message-ID: <CAPWNY8W_Tr-WoD-GXBddD5Y8w5Y4w+gDNYQdOAJ1uBwVHuRrsQ@mail.gmail.com> (raw)
After Git 2.38 (specifically after commit 6061601d9), git no longer
honors safe.directory settings in files that are [include]'d from the
main global configuration file, even though they are shown as being in
global scope by `git config --show-scope --show-origin`.
The docs added by
https://github.com/git/git/commit/779ea9303a7de3d618f3b0e329ebb89529ab3285
only talk about scopes and do not mention anything about [include]
being specifically ignored.
$ git config --get-all --show-scope --show-origin safe.directory
global file:/home/grawity/.config/git/config /srv/this.works
global file:/home/grawity/.config/git/config.local /srv/this.does.not.work
# ~/.config/git/config (owned by grawity:users)
[safe]
directory = /srv/this.works
[include]
path = ~/.config/git/config.local
# ~/.config/git/config.local (also owned by grawity:users)
[safe]
directory = /srv/this.does.not.work
--
Mantas Mikulėnas
next reply other threads:[~2022-10-12 6:16 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-12 6:16 Mantas Mikulėnas [this message]
2022-10-12 17:09 ` 2.38 "protected configuration" ignores includes Glen Choo
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=CAPWNY8W_Tr-WoD-GXBddD5Y8w5Y4w+gDNYQdOAJ1uBwVHuRrsQ@mail.gmail.com \
--to=grawity@gmail.com \
--cc=git@vger.kernel.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.
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).