-
Notifications
You must be signed in to change notification settings - Fork 30k
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
Cannot read .git folder of a repo cloned from an admin-privileged cmd prompt #155910
Comments
@gregsdennis, could you please enable |
Running without privilege:
and with privilege:
Looks to be that the repo is marked as unsafe. I'm fairly certain I've seen a warning saying that the folder isn't trusted and a prompt to mark it as such. It's also strange that running as admin completely ignores the "untrusted" status. |
The dialog that you are seeing the VS Code is related to workspace trust. In your case, there has been a change in behaviour in git that is documented here. In your case, |
Closing this issue as duplicate of #155812. |
That issue is already closed, so I'm putting this here. I don't think this is fully resolved. While I agree that marking the repo as trusted is the correct action for me to take, it seems that having to open the git output (which I didn't even know existed) to find this information is not a good experience. I suggest VSCode detect when this is the case and prompt the user to take action, either by displaying the CLI command to run or by presenting some UI where the user can have the app run the command for them. |
Does this issue occur when all extensions are disabled?: Yes
Versions
Version: 1.69.2 (user setup)
Commit: 3b889b0
Date: 2022-07-18T16:12:52.460Z
Electron: 18.3.5
Chromium: 100.0.4896.160
Node.js: 16.13.2
V8: 10.0.139.17-electron.0
OS: Windows_NT x64 10.0.22000
git version 2.37.1.windows.1
Steps to Reproduce
VSCode does not recognize that the folder is a repo and shows a prompt to initialize a repo and/or sync to GitHub.
VSCode correctly recognizs the folder as a git repo.
Remarks
This seems to be a new-ish behavior, but since VSCode is always up-to-date and I recently manually updated my git-for-windows, it could be either or their interaction.
The text was updated successfully, but these errors were encountered: