Skip to content

Commit

Permalink
MGMT-13038: Git fails to trust git repository because of mismatch wit…
Browse files Browse the repository at this point in the history
…h files (#34987)

git was updated in centos 9 stream repository and now checks if the
owner of the files on the filesystem match the current user.

This change disables the check because Prow runs jobs with a random
user.
  • Loading branch information
adriengentil authored Dec 21, 2022
1 parent a6926be commit 2f8cdfa
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,12 @@ images:
RUN dnf install -y 'dnf-command(config-manager)' && \
dnf config-manager --set-enabled crb && \
dnf install -y git unzip make gcc which nmstate-devel
# Git checks if the user that owns the files on the filesystem match the
# current user. We need to disable this check because tests in Prow are
# running with a random user.
RUN git config --system --add safe.directory '*'
COPY --from=registry.ci.openshift.org/openshift/release:golang-1.17 /usr/local/go /usr/local/go
ENV GOPATH=/go
ENV GOROOT=/usr/local/go
Expand Down

0 comments on commit 2f8cdfa

Please sign in to comment.