Skip to content

Commit

Permalink
Merge pull request #99 from gsteel/git-config-patch
Browse files Browse the repository at this point in the history
Git safe-directory fix
  • Loading branch information
Ocramius authored Jun 14, 2022
2 parents 7608d35 + e0e5cba commit ac5a9ac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,6 @@ 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 \
&& sudo -u testuser git config --global --add safe.directory '*'
RUN useradd -ms /bin/bash testuser

ENTRYPOINT ["entrypoint.sh"]
2 changes: 2 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,8 @@ update-alternatives --quiet --set php-config "/usr/bin/php-config${PHP}"
update-alternatives --quiet --set phpize "/usr/bin/phpize${PHP}"
update-alternatives --quiet --set phpdbg "/usr/bin/phpdbg${PHP}"

# Marks the working directory as safe for the current user prior to checkout
git config --global --add safe.directory '*'
checkout

# Is there a pre-install script available?
Expand Down

0 comments on commit ac5a9ac

Please sign in to comment.