Closed Xargas closed 1 month ago
There is no pattern matching in safe.directory
. There is only *
and explicit names.
See also https://git-scm.com/docs/git-config#Documentation/git-config.txt-safedirectory.
Besides, this is not a Windows-specific issue. @Xargas if you feel that this should be changed, please take it to the Git mailing list (send plain-text messages, HTML messages are dropped silently).
Setup
Details
Which terminal/shell are you running Git from? e.g Bash/CMD/PowerShell/other
What commands did you run to trigger this issue? If you can provide a Minimal, Complete, and Verifiable example this will help us understand the issue.
git fsck --progress fatal: detected dubious ownership in repository at '//192.168.0.2/repositories/app1.git' '//192.168.0.2/repositories/app1.git' is owned by: (inconvertible) (S-X-X-XX-XXXYYYZZZZ-XXXXYYYZZZ-XXXXYYYYZZ-XXXX) but the current user is: DESKTOP/Xargas (S-Z-Z-ZZ-ZZZYYYZZZZ-ZZZZYYYZZZ-XXXXYYYYZZ-XXXX) To add an exception for this directory, call:
Running the git file system check as usual, as the global git config contains the line for the safe directory, specifying the parent directory as safe, so all sub directories should be accepted as safe git repositories. [safe] directory = %(prefix)///192.168.0.2/*
Error message as above. No file system check
Repository is on a private network. There I have a folder where only I have access. I use it to automatically backup repository data. (nightly, weekly, monthly)