3 # Call `tidy` before git push
4 # Copy this script to .git/hooks to activate,
5 # and remove it from .git/hooks to deactivate.
10 # https://github.com/rust-lang/rust/issues/77620#issuecomment-705144570
12 ROOT_DIR="$(git rev-parse --show-toplevel)"
14 echo "Running pre-push script $ROOT_DIR/x test tidy"
17 CARGOFLAGS="--locked" ./x test tidy