vscode-remote-release
vscode-remote-release copied to clipboard
.git broken in devcontainer
- VSCode Version: 1.89.1
- Local OS Version: windows 11 (10.0.22631 Build 22631)
- Remote OS Version: ubuntu 20.04 (FROM mcr.microsoft.com/vscode/devcontainers/base:ubuntu-20.04)
- Remote Extension/Connection Type: Dev Containers (WSL)
- Logs: devcontainer logs don't show any errors
Steps to Reproduce: (tested also with insider version)
-
start vscode with devcontainer (based on the image mentioned above with remoteUser specified (not that it makes a difference)
-
run some git commands which fail and find that e.g.
-
ls .git
complains thatls: cannot access '.git/ORIG_HEAD': No such file or directory
(i.e. file shows up with ??? as access rights and it's the only file in the .git folder were this happens) (this is what I see at the moment) - or the whole
.git/index
file is not accessible (which makes it look like all files should be deleted :))
and every time everything works perfectly fine with git bash outside of the container.
Also I just noticed that the docker extension claims "failed to connect. Is docker installed?" though it is installed and running otherwise the container wouldn't. (Could be a separate issue because there are regularly other issues with docker itself).
-
The issue started about two weeks ago (with a setup that was working for a long time before). Some days it just seemed to disappear (e.g. last Thursday/Friday it worked fine until a restart on Friday). I've tried some old extension versions and old vscode versions and also tried vscode insider version.
Does this issue occur when you try this locally?: Yes/No Does this issue occur when you try this locally and all extensions are disabled?: Yes/No