Skip to content

Commit

Permalink
disable git safe repository detection
Browse files Browse the repository at this point in the history
  • Loading branch information
sbidoul committed May 18, 2022
1 parent c65c7cc commit e1aac2d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ ENV PATH=/home/gitlab-runner/.local/bin:$PATH
RUN git config --global user.email "[email protected]" \
&& git config --global user.name "GitLab"

# disable git safe repository detection, because GitLab CI checks out as root,
# and we run as gitlab-runner
RUN git config --global --add safe.directory '*'

# avoid potential race conditions in creating these directories
RUN mkdir -p \
/home/gitlab-runner/.local/share/Odoo/addons \
Expand Down

0 comments on commit e1aac2d

Please sign in to comment.