From 31c88b0bf2ee5993bb448144748d2a28be4a2828 Mon Sep 17 00:00:00 2001 From: Craig Comstock Date: Thu, 27 Jun 2024 14:21:21 -0500 Subject: [PATCH] Update setup-cfengine-build-host.sh Fixed up a git error on suse-12 and suse-15 platforms. --- ci/setup-cfengine-build-host.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ci/setup-cfengine-build-host.sh b/ci/setup-cfengine-build-host.sh index 0e1c5bfae..a96682b63 100755 --- a/ci/setup-cfengine-build-host.sh +++ b/ci/setup-cfengine-build-host.sh @@ -56,6 +56,8 @@ trap cleanup SIGTERM echo "Using buildscripts commit:" # we have very old platforms with old git that doesn't understand -C option so cd/cd .. it is cd buildscripts +# buildscripts is owned by jenkins so in order to run rev-parse command as root (this script is run with sudo) we must make it safe +git config --global --add safe.directory /home/jenkins/buildscripts git rev-parse HEAD cd ..