Skip to content

Commit

Permalink
Add CI git issue workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
slintes committed Jan 25, 2024
1 parent 29a7cf2 commit f628463
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# SHELL defines bash so all the inline scripts here will work as expected.
SHELL := /bin/bash

# GO_VERSION refers to the version of Golang to be downloaded when running dockerized version
GO_VERSION = 1.20
GOIMPORTS_VERSION = v0.11.0
Expand Down
9 changes: 9 additions & 0 deletions hack/verify-diff.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
#/bin/bash

#-----------------------------------------
# Workaround for git issue on OpenShift CI
#-----------------------------------------
if [ -n "$CI" ]; then
git config --global --add safe.directory /go/src/github.com/medik8s/common
fi

FILE_DIFF=$(git ls-files -o --exclude-standard)

if [ "$FILE_DIFF" != "" ]; then
Expand Down

0 comments on commit f628463

Please sign in to comment.