From: Jonathan Lebon Date: Thu, 26 May 2022 20:54:43 +0000 (-0400) Subject: copr: mark git checkout as safe X-Git-Tag: archive/raspbian/2022.4-1+rpi1^2~9^2^2~9^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=2e564aef074aa0ba39b2ba768dd06fe65858b3df;p=ostree.git copr: mark git checkout as safe Recent git became more strict wrt git repos in parent dirs owned by other users. This broke our COPR builds due to the git checkout being created by a different user and mounted in. We need to explicitly mark the repo as safe. For more information, see: https://github.com/actions/checkout/issues/760 --- diff --git a/.copr/Makefile b/.copr/Makefile index 81a02213..63669e1d 100644 --- a/.copr/Makefile +++ b/.copr/Makefile @@ -1,5 +1,7 @@ srpm: dnf install -y git + # similar to https://github.com/actions/checkout/issues/760, but for COPR + git config --global --add safe.directory '*' ci/make-git-snapshot.sh curl -LO https://src.fedoraproject.org/rpms/ostree/raw/rawhide/f/ostree.spec sed -ie "s,^Version:.*,Version: $$(git describe --always --tags | sed -e 's,-,\.,g' -e 's,^v,,')," ostree.spec