vscodenpa / testissues

Clone of the vscode issue stream.
43 stars 23 forks source link

Source Control fails to discover repository #572

Open vscodenpa opened 2 years ago

vscodenpa commented 2 years ago
  1. clone a git repository in an administrating command prompt.
  2. Open VSCode
  3. Open Folder selecting the repository cloned in step 1

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:

git config --global --add safe.directory C:/dev/xx/ms-tpm-20-ref

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.

vscodenpa commented 2 years ago

confidence for label git: 0.95. does meet threshold

vscodenpa commented 2 years ago

confidence for assignee joaomoreno: 0.85. does meet threshold

vscodenpa commented 2 years ago

confidence for label git: 0.95. does meet threshold

vscodenpa commented 2 years ago

confidence for assignee joaomoreno: 0.85. does meet threshold

vscodenpa commented 2 years ago

confidence for label git: 0.95. does meet threshold

vscodenpa commented 2 years ago

confidence for assignee joaomoreno: 0.85. does meet threshold

vscodenpa commented 2 years ago

confidence for label git: 0.95. does meet threshold

vscodenpa commented 2 years ago

confidence for assignee joaomoreno: 0.85. does meet threshold

vscodenpa commented 2 years ago

confidence for label git: 0.95. does meet threshold

vscodenpa commented 2 years ago

confidence for assignee joaomoreno: 0.85. does meet threshold