Skip to content

Commit

Permalink
Fix git safe dir issue
Browse files Browse the repository at this point in the history
Signed-off-by: Tamal Saha <[email protected]>
  • Loading branch information
tamalsaha committed Dec 25, 2023
1 parent afcee83 commit 0fcdca4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit 0fcdca4

Please sign in to comment.