git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Git "safe directory" not working correctly

From
WRWilliam Ruppel <wcruppel@gmail.com>
Date
May 25, 2024, 18:49 UTC
Message-ID
<CAHa7PX8THmTAYFVwAtjimgcenUPC4A5BF2OHExC82Cnrdtbn=g@mail.gmail.com>

Thank you for filling out a Git bug report! Please answer the following questions to help us understand your issue.

What did you do before the bug happened? (Steps to reproduce your issue) Upgraded to git 2.25.1.windows.1 Now when I pull from my remote I get: fatal: detected dubious ownership in repository at '\\bill\gitmaster\Src' So, I ran this to whitelist everything: git config --global --add safe.directory '*' However, this does NOT solve the issue! I am still getting the same 'dubious ownership' error! So... what, is this some sort of bug where UNC paths are not being recognized as safe?? Or...?

What did you expect to happen? (Expected behavior) Pull should succeed without security errors, since I whilelisted *

What happened instead? (Actual behavior) git craps out with a 'detected dubious ownership' error.

What's different between what you expected and what actually happened? I cannot pull changes from my remote!

Anything else you want to add: Please provide a workaround.

Please review the rest of the bug report below. You can delete any lines you don't wish to share.

[System Info] git version: git version 2.45.1.windows.1 cpu: x86_64 built from commit: 965b16798dab6962ada5b0d8cf0dca68f385c448 sizeof-long: 4 sizeof-size_t: 8 shell-path: /bin/sh feature: fsmonitor--daemon uname: Windows 10.0 19045 compiler info: gnuc: 13.2 libc info: no libc information available $SHELL (typically, interactive shell): <unset>

[Enabled Hooks] not run from a git repository - no hooks to show

Next: William Ruppel
Message 1 of 4 in “Git "safe directory" not working correctly”
  1. William RuppelMay 25, 2024
  2. William RuppelMay 25, 2024
  3. brian m. carlsonMay 25, 2024
  4. William RuppelMay 25, 2024

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.