From: Philipp Date: Fri, 14 Mar 2025 23:18:39 +0000 (+0100) Subject: [CI] avoid safe.directory issues when cloning X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c6fbacd3e8659bf1eaa76348cd6894ef6238583e;p=friendica.git [CI] avoid safe.directory issues when cloning --- diff --git a/.woodpecker/.phpunit.yml b/.woodpecker/.phpunit.yml index 9207e16b76..c1a81a2fd1 100644 --- a/.woodpecker/.phpunit.yml +++ b/.woodpecker/.phpunit.yml @@ -26,7 +26,19 @@ when: exclude: [ stable ] event: [ pull_request, push ] +skip_clone: true + steps: + clone: + image: alpine/git + commands: + - git config --global user.email "no-reply@friendi.ca" + - git config --global user.name "Friendica" + - git config --global --add safe.directory $CI_WORKSPACE + - git clone $CI_REPO_CLONE_URL . + - git checkout $CI_COMMIT_BRANCH + - git fetch origin $CI_COMMIT_REF + - git merge $CI_COMMIT_SHA php-lint: image: php:${PHP_MAJOR_VERSION} commands: