git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Change in behavior of included safe.directory in system config

From
Junio C Hamano <gitster@pobox.com>
Date
Oct 21, 2022, 05:52 UTC
Message-ID
<xmqqzgdpoh9l.fsf@gitster.g>
In-Reply-To
<CAGBAQ45f6D=XsyiOmumpAnE+OxQpuZXhMsVegrHKsxaN5mc3eQ@mail.gmail.com>
Yehuda Katz <yehuda@ymkatz.net> writes:
Show 16 quoted lines
> There seems to be some change in behavior, either to included files or
> to safe.directory between Git 2.36.0 and 2.38.0. I don't see any
> explanation in the release notes.
>
> I push out a system configuration with a configuration management tool
> which is why it is in a separate file.
> If I put the safe.directory configuration in the main system config,
> it works. I don't understand why this is because the value is still
> shown when running a config list.
>
> Basic config:
> [root@myhost myproject]# pwd
> /opt/myproject
> [root@myhost myproject]# cat /etc/gitconfig
> [include]
>         path = /etc/gitconfig.d/myproject
Is this
  https://lore.kernel.org/git/pull.1360.v2.git.git.1665683027912.gitgitgadget@gmail.com/
perhaps?  Can you try the version of Git from my 'next' branch?
Previous: Yehuda KatzNext: Jeff King
Message 2 of 3 in “Change in behavior of included safe.directory in system config”
  1. Yehuda KatzOct 21, 2022
  2. Junio C HamanoOct 21, 2022
  3. Jeff KingOct 21, 2022

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.