You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to rust-lang/rust@8873e33
> 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).
that will automatically run `./x.py test tidy --bless` on each push, to ensure
12
-
your code is up to par. If you decide later that this behavior is
11
+
that will automatically run `./x.py test tidy` on each push, to ensure
12
+
your code is up to par. If the hook fails then run `./x.py test tidy --bless`
13
+
and commit the changes. If you decide later that the pre-push behavior is
13
14
undesirable, you can delete the `pre-push` file in `.git/hooks`.
14
15
15
16
A prebuilt git hook lives at [`src/etc/pre-push.sh`](https://github.com/rust-lang/rust/blob/master/src/etc/pre-push.sh) which can be copied into your `.git/hooks` folder as `pre-push` (without the `.sh` extension!).
0 commit comments