From 362f94eae2c5fceb8c1d82a11860754a4f78738c Mon Sep 17 00:00:00 2001 From: Oliver Date: Fri, 3 Feb 2023 07:14:17 +1100 Subject: [PATCH] Docker build fix (#4298) * Configure safe directory for git * Test docker run on PR * Disable docker build for PR --- docker/init.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docker/init.sh b/docker/init.sh index ef88489198..75f6f53d26 100644 --- a/docker/init.sh +++ b/docker/init.sh @@ -2,6 +2,9 @@ # exit when any command fails set -e +# Required to suppress some git errors further down the line +git config --global --add safe.directory /home/*** + # Create required directory structure (if it does not already exist) if [[ ! -d "$INVENTREE_STATIC_ROOT" ]]; then echo "Creating directory $INVENTREE_STATIC_ROOT"