From 73fcef96cc9b08831a2c2757ee1e8c50e2ce06fe Mon Sep 17 00:00:00 2001 From: iBug Date: Sat, 9 Dec 2023 18:04:23 +0800 Subject: [PATCH] Adjusted git config in Dockerfile (#6468) * Dockerfile: Write to /etc/gitconfig for all users * Merge git config commands into previous RUN --- Dockerfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 65ff5acf5..f9dd99791 100644 --- a/Dockerfile +++ b/Dockerfile @@ -83,11 +83,11 @@ RUN \ find ${PACKAGES} \ -type f \ -path "*/__pycache__/*" \ - -exec rm -f {} \; - -# Trust directory, required for git >= 2.35.2 -RUN git config --global --add safe.directory /docs &&\ - git config --global --add safe.directory /site + -exec rm -f {} \; \ +&& \ + git config --system --add safe.directory /docs \ +&& \ + git config --system --add safe.directory /site # Set working directory WORKDIR /docs