Skip to content

Commit

Permalink
Merge pull request #506 from devosoft/mmore500-macos-tidy
Browse files Browse the repository at this point in the history
Fix tidy validation in macos
  • Loading branch information
mmore500 authored Feb 9, 2024
2 parents 908c265 + 2b39a9d commit 0678db4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ci/util/enforce_git_status.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ if [[ "$(basename -- "$0")" == "enforce_git_status.sh" ]]; then
exit 1
fi

if [ "$CI" != "true" ]; then # bypass check in CI
# because macos CI mysteriously is having dirty clones

# refuse to continue if uncommitted changes are present
# adapted from https://stackoverflow.com/a/40535565
if [ -n "$(git status --porcelain)" ];
Expand All @@ -24,3 +27,8 @@ then
./ci/util/print_gitignored_files_warning.sh
exit 1
fi

# end CI bypass
else
echo "CI detected, bypassing git status check..."
fi # if [ "$CI" != "true" ]; then

0 comments on commit 0678db4

Please sign in to comment.