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
commit 86a0e44ccd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 1 deletions

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