git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* safe directory on shared drives
@ 2022-04-15 10:14 Andrew Noblet
  2022-04-15 11:43 ` Philip Oakley
  0 siblings, 1 reply; 3+ messages in thread
From: Andrew Noblet @ 2022-04-15 10:14 UTC (permalink / raw)
  To: git

The new git security rules creates an issue on Windows systems where
the git repository is hosted in a shared folder.

$ git status

```
fatal: unsafe repository ('//192.168.0.120/config/' is owned by someone else)
To add an exception for this directory, call:

        git config --global --add safe.directory //192.168.0.120/config/
```

$ git config --global --add safe.directory //192.168.0.120/config/
$ git status

```
warning: encountered old-style '//192.168.0.120/config/' that should
be '%(prefix)//192.168.0.120/config/'
fatal: unsafe repository ('//192.168.0.120/config/' is owned by someone else)
To add an exception for this directory, call:

        git config --global --add safe.directory //192.168.0.120/config/
```

There seems to be no way to add a shared drive path to the safe directory list.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-04-15 12:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-15 10:14 safe directory on shared drives Andrew Noblet
2022-04-15 11:43 ` Philip Oakley
     [not found]   ` <CAO=QCg6+J-dA2U9F5dseKbb=HA_pLFmZ9tbHydnLRSk5Dg2UXg@mail.gmail.com>
2022-04-15 12:02     ` Philip Oakley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).