From: Simon Ruderich Date: Fri, 24 Mar 2023 07:18:36 +0000 (+0100) Subject: .gitlab-ci.yml: fix clone error X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=a857acbaf79b051edb9f91cc93c3aef98b61a123;p=nsscash%2Fnsscash.git .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. --- 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