]> git.lizzy.rs Git - rust.git/commitdiff
Don't --bless in pre-push hook
authorTyler Mandry <tmandry@google.com>
Mon, 29 Aug 2022 23:43:47 +0000 (16:43 -0700)
committerTyler Mandry <tmandry@google.com>
Mon, 29 Aug 2022 23:46:51 +0000 (16:46 -0700)
Running with --bless causes the push to succeed if there are fixable
formatting changes, but the changes don't make it into the push.

We should have the user rerun with --bless (or x.py fmt) and commit the
changes themselves (they might want to amend a particular commit, for
instance).

src/etc/pre-push.sh

index 5f5b48bc1c0b43ff235a91779e173ac3d05e2090..be7de3ebaf5712979fc6976b8a2edd4b1693d8e4 100755 (executable)
@@ -10,7 +10,7 @@ set -Eeuo pipefail
 # https://github.com/rust-lang/rust/issues/77620#issuecomment-705144570
 unset GIT_DIR
 ROOT_DIR="$(git rev-parse --show-toplevel)"
-COMMAND="$ROOT_DIR/x.py test tidy --bless"
+COMMAND="$ROOT_DIR/x.py test tidy"
 
 if [[ "$OSTYPE" == "msys" || "$OSTYPE" == "win32" ]]; then
   COMMAND="python $COMMAND"