From: Andrew Noblet <andrewbnoblet@gmail.com>
To: git@vger.kernel.org
Subject: safe directory on shared drives
Date: Fri, 15 Apr 2022 06:14:25 -0400 [thread overview]
Message-ID: <CAO=QCg5+M-=dOf=AFTDL8z9-LrK-7vau+=JV-7QJfVOhdFp1Aw@mail.gmail.com> (raw)
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.
next reply other threads:[~2022-04-15 10:14 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-15 10:14 Andrew Noblet [this message]
2022-04-15 11:43 ` safe directory on shared drives Philip Oakley
[not found] ` <CAO=QCg6+J-dA2U9F5dseKbb=HA_pLFmZ9tbHydnLRSk5Dg2UXg@mail.gmail.com>
2022-04-15 12:02 ` Philip Oakley
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAO=QCg5+M-=dOf=AFTDL8z9-LrK-7vau+=JV-7QJfVOhdFp1Aw@mail.gmail.com' \
--to=andrewbnoblet@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).