From 9300113adac15f9e282564e22ecacf8636c8ce7e Mon Sep 17 00:00:00 2001 From: Beniamino Pozzan Date: Tue, 15 Sep 2026 19:34:36 +0100 Subject: [PATCH] fix(docker): mark all repo as safe for git when running in container whitelisting only PX4 source directory made git commands fail when executed on the submodules Signed-off-by: Beniamino Pozzan --- docs/en/dev_setup/sitl_container_builds.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/en/dev_setup/sitl_container_builds.md b/docs/en/dev_setup/sitl_container_builds.md index 1efde29934a..0953e27060f 100644 --- a/docs/en/dev_setup/sitl_container_builds.md +++ b/docs/en/dev_setup/sitl_container_builds.md @@ -140,7 +140,7 @@ GIT_COMMON_DIR=$(git rev-parse --path-format=absolute --git-common-dir) docker run --rm -it \ -v "$SOURCE:$SOURCE" -v "$GIT_COMMON_DIR:$GIT_COMMON_DIR" -w "$SOURCE" \ -e GIT_CONFIG_COUNT=1 -e GIT_CONFIG_KEY_0=safe.directory \ - -e "GIT_CONFIG_VALUE_0=$SOURCE" px4-dev-ros2:local bash + -e "GIT_CONFIG_VALUE_0=*" px4-dev-ros2:local bash ``` The same absolute mounts support both ordinary checkouts and git worktrees.