-
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
Source Control no longer works on Ubuntu 20.04 #147797
Comments
Have you recently upgraded your version of Git? What version of Git are you using? |
@lszomoru I am not sure. I do update the packages when Ubuntu gives me the popup occasionally. git version: 2.25.1. |
I see. Could you please open the folder/workspace, and then invoke the |
@lszomoru OK. Here is the output:
The directory does exist. I am using
The same repository works fine in Windows VS Code with Source Control. |
I have the same issue here is my output
|
i am having the same issue as well but I am running ubuntu on windows |
same and, having the same issue. I click the initialize repository and choose the my project folder but nothing happens. |
I suppose Microsoft does not care about fixing this seeing as how there are 5k+ open issues. Reverting back to version Nov 2021 allows GitHub source control to work again: https://code.visualstudio.com/updates/v1_63. You have to make sure the repository has been checked out with a personal access code token and run |
I am having the same issue. VS Code Version: 1.66.2 I reverted to VSCode version 1.65.2 and the issue was present there too. I can still use git through the CLI and do pulls and commits with no problem. It's just that the source control in VSCode is not working.
Unfortunately, this workaround didn't work for me. I switched to version 1.63.2 of VSCode, git cloned my repo and authenticated with my personal access token, re-set the remote set-url origin with the personal access token, chmod, git init in the directory, restarted VSCode - no dice. I still have the same source control screen where the "Initialize Repository" button does nothing. I also attempted to go through the "Publish to GitHub" method and that did nothing either.
This could be related: |
Apologies for not getting back to you on this issue until now. The latest Insiders release (2022-05-16), contains logging improvements, as well as additional logging to the code that detects git repositories which will hopefully track down the root cause of the problem. Could you please:
|
Installed version 1.68.0-insiders and enabled Trace level logging.
I already tried running the add safe.directory command and I don't notice any change. Same error in the log appears. From Googling this, it looks like it's related to the recent Git vulnerability? https://github.blog/2022-04-12-git-security-vulnerability-announced/ Hope this helps. |
I was able to get the latest version of VS Code ( |
@xinthose, sorry for not getting back to you on this until now. |
Duplicate of #157159. This will be included in VS Code 1.74. |
Does this issue occur when all extensions are disabled?: Yes
Steps to Reproduce:
I have a .git folder in the same directory as the workspace. Running
git init
on the directory, or doing a fresh checkout does not help. This same folder/repository has worked for years with VS Code Source Control without issues until last week. I tried reverting the version back to March, but that did not help either.The text was updated successfully, but these errors were encountered: