-
Notifications
You must be signed in to change notification settings - Fork 27.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fatal: unsafe repository ('' is owned by someone else) #148132
Comments
I actually received this same issue outside of VSCode, running a simple 'git status' on my local Git repository. I'm running Git version 2.36.0.windows.1. |
Proper fix is to change repository owner to the current user |
Same issue here. A little more research turned up that it's related to a recent git update from 2.35.2 to address CVE-2022-24765. In my case, I'm working from a network drive, so "just fix the owner" isn't a workable solution. For posterity, since this was the top hit on Google for it for me, there's some discussion on it here on StackOverflow. Personally, since I can accept the risk, for now I'm rolling with the generally unsatisfactory solution of
|
I downgraded from VS Enterprise 2022 to VS Professional 2022 and I get this error. |
Thank you, I'm working on Encrypted Veracrypt drives and this seems like the only working solution. Thank you, again! :) |
This happened to me as well after I update to |
VS Code needs to at least acknowledge the unsafe repository status from GIT instead of indicating 'no repository here, make one?', when making one still won't work. |
This did the trick for me. I normaly always run VS in administrator mode but I forgot to set it up this time. |
Had this using windows vscode with repositories in wsl. Switched to vscode WSL. |
The latest release of VS Code ( |
Does this issue occur when all extensions are disabled?: Yes/No
Steps to Reproduce:
Obviously, for security purposes, an extension wouldn't want to just add this value for the user, so it would be nice to provide the same dialog that vsCode uses (though for a different purpose), that asks the user if they want to trust the repository.
You could certainly say that this is not a vsCode issue and that such a dialog shouldn't be handled internally by vscode, and I wouldn't be able to argue. In the meantime, I would probably look into prompting the user for trust and then use 'child_process' to exec git config global' Could you at least point me to where I can pick up the error without just debugging all "CaughtExceptions"?
The text was updated successfully, but these errors were encountered: