From 6a9065960d0b22e9327eafb4cc7c5a8f9eedfd7e Mon Sep 17 00:00:00 2001 From: llamantino <213239228+llamantino@users.noreply.github.com> Date: Tue, 17 Jun 2025 22:22:42 +0200 Subject: [PATCH] fix(devcontainer): mark workspace as safe dir (#9136) --- .devcontainer/setup.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.devcontainer/setup.sh b/.devcontainer/setup.sh index c4035508ef..5912a3c6eb 100755 --- a/.devcontainer/setup.sh +++ b/.devcontainer/setup.sh @@ -1,5 +1,9 @@ #!/bin/bash +# Mark the current repository as safe for Git to prevent "dubious ownership" errors, +# which can occur in containerized environments when directory ownership doesn't match the current user. +git config --global --add safe.directory "$(realpath .)" + # Install `nc` sudo apt update && sudo apt install netcat -y