Skip to content

Commit 2ad3e22

Browse files
committed
ci: Mark the current git directory as safe
This is necessary to prevent fatal: detected dubious ownership in repository at '/__w/vdsm/vdsm' messages in the CentOS Stream 9 container and, more importantly, making wrong rpm release version there when building rpm’s. Without this, the determined release version on CI is always ‘1’, which results in not installing the required set of rpm’s in OST and an OST failure. Signed-off-by: Milan Zamazal <[email protected]>
1 parent 2540c1d commit 2ad3e22

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ci/rpm.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
# SPDX-FileCopyrightText: Red Hat, Inc.
44
# SPDX-License-Identifier: GPL-2.0-or-later
55

6+
git config --global --add safe.directory "$PWD"
7+
68
export EXPORT_DIR="${EXPORT_DIR:-exported-artifacts}"
79

810
if [ "$GITHUB_EVENT_NAME" = "push" ]; then

0 commit comments

Comments
 (0)