From 0fcdca45e3c4e1182f2adb328eb220867845bb12 Mon Sep 17 00:00:00 2001 From: Tamal Saha Date: Mon, 25 Dec 2023 09:11:17 -0800 Subject: [PATCH] Fix git safe dir issue Signed-off-by: Tamal Saha --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index a64bb04..7c5fc31 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,9 +7,11 @@ RUN set -x \ && apt-get install -y --no-install-recommends apt-utils ca-certificates wget git bash mercurial bzr xz-utils socat build-essential gcc protobuf-compiler \ && rm -rf /var/lib/apt/lists/* /usr/share/doc /usr/share/man /tmp/* +# https://candid.technology/error-obtaining-vcs-status-exit-status-128/ # https://stackoverflow.com/a/73100228 RUN set -x \ - && git config --global --add safe.directory '*' + && git config --global --add safe.directory '*' \ + && cp /root/.gitconfig /.gitconfig # https://github.com/gardener/gardener/issues/289 RUN set -x \