From e74f21fff78be7baeeb798f51a5fd4b7bb8f5f1e Mon Sep 17 00:00:00 2001 From: Henry Warhurst Date: Thu, 17 Oct 2024 22:32:54 +0200 Subject: [PATCH] Docker: Fix git perms issue during copter build --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index 22d8d67292ad25..dcd91f85b137d8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -39,6 +39,9 @@ RUN SKIP_AP_EXT_ENV=$SKIP_AP_EXT_ENV SKIP_AP_GRAPHIC_ENV=$SKIP_AP_GRAPHIC_ENV SK USER=${USER_NAME} \ Tools/environment_install/install-prereqs-ubuntu.sh -y +# Rectify git perms issue that seems to crop up only on OSX +RUN git config --global --add safe.directory $PWD + # Check that local/bin are in PATH for pip --user installed package RUN echo "if [ -d \"\$HOME/.local/bin\" ] ; then\nPATH=\"\$HOME/.local/bin:\$PATH\"\nfi" >> ~/.ardupilot_env