title: git error "[my repository] is on a file system that does not record ownership"
body: <p>I'm getting this error between two W10 systems running a VPN and RDP.
  My local system &quot;<code>My</code>&quot; has an area <code>c:\cap2office</code> that is a Git repository.<br />
  The remote system &quot;Remote&quot; has My C: drive mapped to its drive S:
  I can see the <code>C:\cap2office directory</code> as <code>S:\cap2office</code> on the remote system.<br />
  And the username on the remote system is different from the username on my local system.</p>
  <p>On Remote, I typed &quot;<code>git status</code>&quot; and it complained about mismatching ownership and suggested defining <code>GIT_TEST_DEBUG_UNSAFE_DIRECTORIES=true</code>, so I did that on the Remote system and that warning went away.</p>
  <p>But it still says:</p>
  <pre><code>warning: '//tsclient/C/cap2office' is on a file system that does not record ownership
  fatal: unsafe repository ('//tsclient/C/cap2office' is owned by someone else)
  To add an exception for this directory, call:
          git config --global --add safe.directory '%(prefix)///tsclient/C/cap2office'
  </code></pre>
  <p>So on the Remote system, I did:</p>
  <pre><code>git config --global --add safe.directory S:/cap2office
  </code></pre>
  <p>On the Remote, I can do <code>git config --list</code></p>
  <p>And in addition to the error (3 times):</p>
  <pre><code>   warning: '//tsclient/C/cap2office' is on a file system that does not record ownership
  I see this at the end, so the safe.directory did get added:
      safe.directory=S:/cap2office
  </code></pre>
  <p>But when I do 'git status', I still get:</p>
  <pre><code>warning: '//tsclient/C/cap2office' is on a file system that does not record ownership
  fatal: unsafe repository ('//tsclient/C/cap2office' is owned by someone else)
  To add an exception for this directory, call:
          git config --global --add safe.directory '%(prefix)///tsclient/C/cap2office'
  </code></pre>
  <p>So I also tried</p>
  <pre><code>git config --global --add safe.directory //tsclient/C/cap2office
  warning: '//tsclient/C/cap2office' is on a file system that does not record ownership
  warning: encountered old-style '//tsclient/C/cap2office' that should be '%(prefix)///tsclient/C/cap2office'
  fatal: unsafe repository ('//tsclient/C/cap2office' is owned by someone else)
  To add an exception for this directory, call:
          git config --global --add safe.directory '%(prefix)///tsclient/C/cap2office'
  </code></pre>
  <p>Any ideas? What should <code>%prefix</code> be, maybe the drive mapping doesn't work?</p>
  <p>BTW, I'm curious where the <code>.gitconfig</code> file is located.<br />
  It doesn't appear to be <code>C:\user\accountname\.gitconfig</code> as advertised or under the program files Git area.</p>