Rollup merge of #113206 - chenyukang:yukang-trivial-fix-113135, r=Kobzol

User may want to skip tidy check sometimes

Fixes #113135
This commit is contained in:
Matthias Krüger 2023-07-01 00:35:08 +02:00 committed by GitHub
commit 58a61eea89
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,7 +5,7 @@
# and remove it from .git/hooks to deactivate.
#
set -Eeuo pipefail
set -Euo pipefail
# https://github.com/rust-lang/rust/issues/77620#issuecomment-705144570
unset GIT_DIR
@ -15,3 +15,7 @@ echo "Running pre-push script $ROOT_DIR/x test tidy"
cd "$ROOT_DIR"
./x test tidy --set build.locked-deps=true
if [ $? -ne 0 ]; then
echo "You may use \`git push --no-verify\` to skip this check."
exit 1
fi