We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 626e1ea + cfa1a79 commit 58a61eeCopy full SHA for 58a61ee
src/etc/pre-push.sh
@@ -5,7 +5,7 @@
5
# and remove it from .git/hooks to deactivate.
6
#
7
8
-set -Eeuo pipefail
+set -Euo pipefail
9
10
# https://github.com/rust-lang/rust/issues/77620#issuecomment-705144570
11
unset GIT_DIR
@@ -15,3 +15,7 @@ echo "Running pre-push script $ROOT_DIR/x test tidy"
15
16
cd "$ROOT_DIR"
17
./x test tidy --set build.locked-deps=true
18
+if [ $? -ne 0 ]; then
19
+ echo "You may use \`git push --no-verify\` to skip this check."
20
+ exit 1
21
+fi
0 commit comments