fix(devcontainer): mark workspace as safe dir (#9136)

This commit is contained in:
llamantino 2025-06-17 22:22:42 +02:00 committed by GitHub
parent 653a8a7ce2
commit 6a9065960d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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