Skip to content
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

VSCode says my folder is not under source control when not launched with elevation. #157933

Closed
BrainSlugs83 opened this issue Aug 11, 2022 · 6 comments
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s) git GIT issues

Comments

@BrainSlugs83
Copy link

BrainSlugs83 commented Aug 11, 2022

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.70.1 (but it also happened in the previous version before upgrade)
  • OS Version: Windows 10 - 19043

Steps to Reproduce:

  1. Initialize a git repo from an elevated developer command prompt with git init
  2. Open that folder from vscode, and click on the source control tab.
  3. Observe that it does not recognize the folder as a git repo and instead offers you to initialize a new one. (I believe that for an existing repo this could cause serious issues and corrupt your repo!)
  4. Open vscode with admin elevation, and open the same folder, observe that it now recognizes this folder as a git repo.

Expected Behavior:

Vscode should recognize the repo whether it is launched as an admin or not. -- If there is some permissions issue, it should display that as an error instead of offering to corrupt your repository for you!

@gjsjohnmurray
Copy link
Contributor

@gjsjohnmurray
Copy link
Contributor

/duplicate of #150290

@vscodenpa vscodenpa added the *duplicate Issue identified as a duplicate of another issue(s) label Aug 11, 2022
@vscodenpa
Copy link

Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for similar existing issues. See also our issue reporting guidelines.

Happy Coding!

@vscodenpa vscodenpa closed this as not planned Won't fix, can't repro, duplicate, stale Aug 11, 2022
@BrainSlugs83
Copy link
Author

/duplicate of #150290

@gjsjohnmurray -- I disagree; it is similar, but this bug is specific to elevation. -- The repo is ALREADY trusted, but I have to run vscode as an admin for it to notice!

VSCode should 1.) Not say there is no repo (so yes, same as #150290), but also 2.) it should not say it's not trusted (it IS trusted; it should instead tell me that I need to be elevated (and perhaps offer to relaunch in elevated mode).

@gjsjohnmurray
Copy link
Contributor

/assign @lszomoru who can reopen the issue.

@lszomoru lszomoru reopened this Aug 24, 2022
@lszomoru lszomoru added git GIT issues and removed *duplicate Issue identified as a duplicate of another issue(s) labels Aug 24, 2022
@lszomoru
Copy link
Member

lszomoru commented Dec 6, 2022

Closing as duplicate of #157159. This will be included in VS Code 1.74.

@lszomoru lszomoru closed this as completed Dec 6, 2022
@lszomoru lszomoru added the *duplicate Issue identified as a duplicate of another issue(s) label Dec 6, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Jan 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s) git GIT issues
Projects
None yet
Development

No branches or pull requests

4 participants