From ef8b2f28933f6e275dbbb0de99041bc7013ce3bc Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Fri, 1 Dec 2023 13:12:01 +1000 Subject: [PATCH] ci: Mark our git clone as a safe directory fatal: detected dubious ownership in repository at '/builds/whot/mutter' To add an exception for this directory, call: git config --global --add safe.directory /builds/whot/mutter Part-of: --- .gitlab-ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 50e292111..13d19759f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -299,6 +299,7 @@ check-code-style: - job: build-fedora-container@x86_64 artifacts: false script: + git config --global --add safe.directory $CI_PROJECT_DIR ; git remote add target $CI_MERGE_REQUEST_PROJECT_URL.git ; git fetch target $CI_MERGE_REQUEST_TARGET_BRANCH_NAME ; export common_parent_sha=$(diff --old-line-format='' --new-line-format='' <(git rev-list --first-parent "target/$CI_MERGE_REQUEST_TARGET_BRANCH_NAME") <(git rev-list --first-parent HEAD) | head -1) ;