You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Workspace is not set as a safe directory **
When initalizing container we get :
Running the postCreateCommand from devcontainer.json...
[24932 ms] Start: Run in container: /bin/sh -c bash /workspace/.devcontainer/scripts/post-create.sh
Runing post-create.sh
Adding git template remote
fatal: detected dubious ownership in repository at '/workspace'
To add an exception for this directory, call:
git config --global --add safe.directory /workspace
fatal: detected dubious ownership in repository at '/workspace'
To add an exception for this directory, call:
git config --global --add safe.directory /workspace
Running the postStartCommand from devcontainer.json...
To Reproduce
Steps to reproduce the behavior:
Create repository based on this template
Clone your repository
Reopen in devcontainer
Expected behavior
Expected to trust workspace automatically.
Screenshots
Desktop (please complete the following information):
OS: debian11
The text was updated successfully, but these errors were encountered:
Seems that git threw the error message detected dubious ownership in repository when you clone a repository with a different user than the one you used.
Here We are using root user by default.
So maybe simply consider /workspace as trusted by default.
**Workspace is not set as a safe directory **
When initalizing container we get :
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Expected to trust workspace automatically.
Screenshots
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: