[SOLVED] Re: safe.directory does not work at all (git 2.39.5, 2.51.0)
- From
- Marc-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