From 5bf5dba28a300b9347cf837cf549a83bbcba0471 Mon Sep 17 00:00:00 2001 From: Ian Wienand Date: Wed, 13 Apr 2022 12:15:33 +1000 Subject: [PATCH] run-base: allow git into system-config This section runs as root, but the system-config repo is cloned as Zuul. This causes a problem for tox, when it installs it calls out to git which is no longer operates in the directory [1]. [1] https://github.com/git/git/commit/8959555cee7ec045958f9b6dd62e541affb7e7d9 Change-Id: I5c67208c025d29435dcc40c5eeb3b3aa8e5c4d5d --- playbooks/zuul/run-base.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/playbooks/zuul/run-base.yaml b/playbooks/zuul/run-base.yaml index 8e159e9187..d0898c365f 100644 --- a/playbooks/zuul/run-base.yaml +++ b/playbooks/zuul/run-base.yaml @@ -156,6 +156,9 @@ - name: Screenshots url: "bridge.openstack.org/screenshots" + - name: Allow PBR's git calls to operate in system-config, despite not owning it + command: git config --global safe.directory /home/zuul/src/opendev.org/opendev/system-config + - name: Run and collect testinfra block: - name: Run testinfra to validate configuration