Merge pull request #17659 from cevich/fix_bud_git_config

Cirrus: Fix git config permission denied
This commit is contained in:
OpenShift Merge Robot
2023-03-01 15:15:35 +01:00
committed by GitHub

View File

@ -155,7 +155,13 @@ if [[ -n $do_checkout ]]; then
# under automation, nobody cares about this condition or message, because
# the environment is disposable.
if [[ "$CI" == "true" ]]; then
git config --system --add safe.directory $buildah_dir
(
_gc='git config --global'
set -x
$_gc user.email "TMcTestFace@example.com"
$_gc user.name "Testy McTestface"
$_gc --add safe.directory $buildah_dir
)
fi
cd $buildah_dir