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

Open repository keeps reusing broken local copy even after update is pushed #2435

Closed
mjbvz opened this issue Feb 26, 2020 · 2 comments
Closed
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug containers Issue in vscode-remote containers

Comments

@mjbvz
Copy link

mjbvz commented Feb 26, 2020

Testing #2407

Repo

  1. Using a repository with a container that has a initializeCommand that will fail (https://github.com/mjbvz/test-contianer/tree/715ae930cc472905d837c12c7548c23b550a8633)
  2. Try opening this repo using the Open Repository command
  3. It fails as expected
  4. Now push an update the repository that fixes the issue
  5. Run Open repository again and select the same location

Bug
VS Code still uses the old container definition. I can't figure out how to force it to update to the new repository definition.

I see the following logs:

[904 ms] fatal: destination path '/workspaces/test-contianer' already exists and is not an empty directory.
[929 ms] Repository 'mjbvz/test-contianer.git' was already cloned into '/workspaces/test-contianer'.

Related

@chrmarti
Copy link
Contributor

Could be solved with #2428 (comment).

@chrmarti chrmarti added bug Issue identified by VS Code Team member as probable bug containers Issue in vscode-remote containers labels Feb 26, 2020
@chrmarti
Copy link
Contributor

The error dialog now offers to open a 'Recovery Container' in which the Git repo can be advanced to the latest commit.

@github-actions github-actions bot locked and limited conversation to collaborators Dec 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug containers Issue in vscode-remote containers
Projects
None yet
Development

No branches or pull requests

3 participants