Skip to content

Cannot read .git folder of a repo cloned from an admin-privileged cmd prompt #155910

@gregsdennis

Description

@gregsdennis

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

  1. Start a command prompt as an admin
  2. Clone a repo
  3. Open the repo folder in VSCode, non-admin

VSCode does not recognize that the folder is a repo and shows a prompt to initialize a repo and/or sync to GitHub.

  1. Start a command prompt not as an admin
  2. Clone a repo
  3. Open the repo folder in VSCode, non-admin

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.

Metadata

Metadata

Assignees

Labels

*duplicateIssue identified as a duplicate of another issue(s)gitGIT issues

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions