Skip to content

Commit

Permalink
Merge pull request #17643 from cevich/fix_cron_bud
Browse files Browse the repository at this point in the history
Cirrus: Fix bud tests failing to apply patches
  • Loading branch information
openshift-merge-robot authored Feb 28, 2023
2 parents 6d2cd36 + 0f92e19 commit 8f95a50
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/buildah-bud/run-buildah-bud-tests
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,15 @@ if [[ -n $do_checkout ]]; then
failhint="'git clone' failed - this should never happen!"
(set -x;git clone -q $shallow_checkout https://$BUILDAH_REPO $buildah_dir)

# Recent versions of git (like `2.39`) disallow some operations (like `am`)
# without an identity being set. In this case, git will throw an error
# with a helpful error message for humans to ponder. However, when running
# 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
fi

cd $buildah_dir
if [[ -z $shallow_checkout ]]; then
# extract the SHA (rightmost field) from, e.g., v1.2-YYYMMDD-<sha>
Expand Down

0 comments on commit 8f95a50

Please sign in to comment.