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

Re: safe.directory wildcards

From
Konstantin Ryabitsev <konstantin@linuxfoundation.org>
Date
May 29, 2024, 16:35 UTC
Message-ID
<20240529-rough-skunk-of-glamour-edcc8b@meerkat>
In-Reply-To
<xmqqplt4zjw7.fsf@gitster.g>
On Wed, May 29, 2024 at 09:02:16AM GMT, Junio C Hamano wrote:
Show 12 quoted lines
> When safe.directory was introduced in v2.30.3 timeframe, 8959555c
> (setup_git_directory(): add an owner check for the top-level
> directory, 2022-03-02), it only allowed specific opt-out
> directories.  Immediately after an embargoed release that included
> the change, 0f85c4a3 (setup: opt-out of check with safe.directory=*,
> 2022-04-13) was done as a response to loosen the check so that a
> single '*' can be used to say "I trust all repositories" for folks
> who host too many repositories to list individually.
> 
> Let's further allow people to say "everything under this hierarchy
> is deemed safe" by specifying such a leading directory with "/*"
> appended to it.
I welcome this change, too!
Acked-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
-K
Previous: Junio C HamanoNext: Stefan Metzmacher
Message 3 of 7 in “safe.directory wildcards”
  1. Stefan MetzmacherMay 29, 2024
  2. Junio C HamanoMay 29, 2024
  3. Konstantin RyabitsevMay 29, 2024
  4. Stefan MetzmacherMay 29, 2024
  5. Patrick SteinhardtMay 31, 2024
  6. Chris TorekMay 31, 2024
  7. Junio C HamanoMay 31, 2024

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.