Skip to content

Workspace is not set as a safe directory  #4

@argedistomb

Description

@argedistomb

**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:

  1. Create repository based on this template
  2. Clone your repository
  3. Reopen in devcontainer

Expected behavior
Expected to trust workspace automatically.

Screenshots
image

Desktop (please complete the following information):

  • OS: debian11

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions