Skip to content

Commit

Permalink
Merge pull request #97 from Ocramius/fix/allow-git-operations-on-untr…
Browse files Browse the repository at this point in the history
…usted-repositories

Fix: disable `git`'s `safe.directory` handling completely (for `testuser`)
  • Loading branch information
Ocramius authored Jun 14, 2022
2 parents d94b96a + 585739f commit 7608d35
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,6 @@ RUN apt update \
&& apt autoremove -y \
&& apt clean

RUN git config --global --add safe.directory '*'

# Build/install static modules that do not have packages
COPY mods-available /mods-available
COPY mods-install /mods-install
Expand Down Expand Up @@ -244,6 +242,7 @@ COPY setup/markdownlint/problem-matcher.json /etc/laminas-ci/problem-matcher/mar
COPY setup/phpunit/problem-matcher.json /etc/laminas-ci/problem-matcher/phpunit.json


RUN useradd -ms /bin/bash testuser
RUN useradd -ms /bin/bash testuser \
&& sudo -u testuser git config --global --add safe.directory '*'

ENTRYPOINT ["entrypoint.sh"]

0 comments on commit 7608d35

Please sign in to comment.