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

Re: safe.directory does not work at all (git 2.39.5, 2.51.0)

From
Carlo Marcelo Arenas Belón <carenas@gmail.com>
Date
Sep 13, 2025, 22:13 UTC
Message-ID
<lamzerhpp6kbgzbhztgaqvdcymaqvec232sen67t6wx4rmobih@lqqivgroonmp>
In-Reply-To
<duuus2ifgydpwpja6vccvxbcnxdgy6mc6h63okzv7xdqo23fpi@ermurkhms4j3>
On Sat, Sep 13, 2025 at 07:38:53PM -0800, Marc-Jano Knopp wrote:
Show 7 quoted lines
> $ git clone myuser@my.server:/git/main/test.git
> Cloning into 'test'...
> fatal: detected dubious ownership in repository at '/git/main/test.git'
> To add an exception for this directory, call:
> 
>         git config --global --add safe.directory /git/main/test.git
> fatal: Could not read from remote repository.

it is a little confusing, but the message comes from the git command running in "my.server".

doest it work if you run the same command after first doing ssh with "myuser" account into "my.server"?

Carlo
Previous: Marc-Jano KnoppNext: Marc-Jano Knopp
Message 2 of 6 in “safe.directory does not work at all (git 2.39.5, 2.51.0)”
  1. Marc-Jano KnoppSep 13, 2025
  2. Carlo Marcelo Arenas BelónSep 13, 2025
  3. [SOLVED] Re: safe.directory does not work at all (git 2.39.5, 2.51.0)Marc-Jano Knopp, Sep 14, 2025
  4. Jeff KingSep 15, 2025
  5. Jeff KingSep 15, 2025
  6. Marc-Jano KnoppSep 17, 2025

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.