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

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

From
MKMarc-Jano Knopp <y--gitbugs@marc-jano.de>
Date
Sep 14, 2025, 18:26 UTC
Message-ID
<hbghuae56gm6ypox6q34mt4q6awoeb3itxsnmgpouycn7qodch@4pjsh24jhmqs>
In-Reply-To
<lamzerhpp6kbgzbhztgaqvdcymaqvec232sen67t6wx4rmobih@lqqivgroonmp>
On Sun, 2025-09-14, at 00:13:14 (+0200), Carlo Marcelo Arenas Belón wrote:
Show 11 quoted lines
> On Sat, Sep 13, 2025 at 07:38:53PM -0800, Marc-Jano Knopp wrote:
> > $ 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".

D'oh! Is there a way for the layman to see if a message comes from the client or the server?

> doest it work if you run the same command after first doing ssh with "myuser"
> account into "my.server"?
Yes, it does! Thanks a million! *smooch* <3  :)
MJK
Previous: Carlo Marcelo Arenas BelónNext: Jeff King
Message 3 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.