Source Control fails to discover repository #150290
Labels
*duplicate
Issue identified as a duplicate of another issue(s)
feature-request
Request for new features or functionality
git
GIT issues
Milestone
Actual result:
Source Control panel displays "The folder currently open doesn't have a git repository".
The actual result is incorrect and misleading.
Git output panel contents:
[2022-05-24T16:12:29.235Z] Validating found git in: C:\Program Files\Git\cmd\git.exe
[2022-05-24T16:12:29.393Z] Using git 2.36.0.vfs.0.0 from C:\Program Files\Git\cmd\git.exe
[2022-05-24T16:12:30.944Z] > git rev-parse --show-toplevel [493ms]
[2022-05-24T16:12:30.944Z] fatal: unsafe repository ('C:/dev/xx/ms-tpm-20-ref' is owned by someone else)
To add an exception for this directory, call:
Expected result (option 1):
VS Code displays message that git encountered an error
Expected result (option 2):
VS Code recognizes the unsafe repository and provides instructions for user to rectify the problem.
The text was updated successfully, but these errors were encountered: