Questions tagged [cve-2022-24765]
4 questions
246
votes
25 answers
git submodule update failed with 'fatal: detected dubious ownership in repository at'
I mounted a new hdd in my linux workstation. It looks working well. I want to download some repo in the new disk. So I execute git clone XXX, and it works well. But when I cd in the folder, and execute git submodule update --init --recursive. It…

Huihua Jiang
- 2,561
- 2
- 4
- 9
203
votes
26 answers
Fatal error "unsafe repository ('/home/repon' is owned by someone else)"
I found an error log from Apache 2 that is fatal:
unsafe repository ('/home/repon' is owned by someone else)
It happens because I have git rev-parse --symbolic-full-name --abbrev-ref HEAD' in PHP code, and it looks like the new Git safety change no…

XiaoFangyu
- 2,031
- 2
- 4
- 4
168
votes
24 answers
I cannot add the parent directory to *safe.directory* in Git
After updating Git to v2.35.2.windows.1 I'm getting the following error:
fatal: unsafe repository ('F:/GitHub/my-project' is owned by someone else)
To add an exception for this directory, call:
git config --global --add safe.directory…

Shleemypants
- 2,081
- 2
- 14
- 21
31
votes
2 answers
How to add directory recursively on git safe.directory?
According to this QA, we may use safe.directory argument to add directory to be marked as whitelist, due to latest CVE found on git. But it seems there is no way to add certain dirs recursively.
I have so many repositories to add, so i want to use…

adib-enc
- 433
- 1
- 5
- 6