-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
disable git safe repository detection
- Loading branch information
Showing
1 changed file
with
4 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 \ | ||
|