From a857acbaf79b051edb9f91cc93c3aef98b61a123 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Fri, 24 Mar 2023 08:18:36 +0100 Subject: [PATCH] .gitlab-ci.yml: fix clone error I don't know why the error only occurred on the debian-stable target. Both testing and sid should be affected as well. --- .gitlab-ci.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c43c983..9d8b58c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -9,6 +9,12 @@ - chown -R nobody . # Empty TEST_* as -fsanitize doesn't work in a Docker container - runuser -p -u nobody -- ./ci/run TEST_CFLAGS= TEST_LDFLAGS= + variables: + # The chown to nobody above causes permissions errors in recent Git + # versions "fatal: detected dubious ownership in repository [...] To add + # an exception for this directory, call: git config --global --add + # safe.directory [...]". + GIT_STRATEGY: clone debian-stable: <<: *template-docker -- 2.45.2