summaryrefslogtreecommitdiffstats
path: root/src/etc/pre-push.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/etc/pre-push.sh')
-rwxr-xr-xsrc/etc/pre-push.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/etc/pre-push.sh b/src/etc/pre-push.sh
index ff1793111..c9e1a2733 100755
--- a/src/etc/pre-push.sh
+++ b/src/etc/pre-push.sh
@@ -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
@@ -14,4 +14,8 @@ ROOT_DIR="$(git rev-parse --show-toplevel)"
echo "Running pre-push script $ROOT_DIR/x test tidy"
cd "$ROOT_DIR"
-CARGOFLAGS="--locked" ./x test tidy
+./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