Skip to content

Commit bd89a7c

Browse files
committed
Suggest pre-push hook instead of pre-commit
1 parent d21a217 commit bd89a7c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/building/suggested.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@
33
The full bootstrapping process takes quite a while. Here are some suggestions
44
to make your life easier.
55

6-
## Installing a pre-commit hook
6+
## Installing a pre-push hook
77

88
CI will automatically fail your build if it doesn't pass `tidy`, our
99
internal tool for ensuring code quality. If you'd like, you can install a
1010
[Git hook](https://git-scm.com/book/en/v2/Customizing-Git-Git-Hooks)
11-
that will automatically run `./x.py test tidy --bless` on each commit, to ensure
11+
that will automatically run `./x.py test tidy --bless` on each push, to ensure
1212
your code is up to par. If you decide later that this behavior is
13-
undesirable, you can delete the `pre-commit` file in `.git/hooks`.
13+
undesirable, you can delete the `pre-push` file in `.git/hooks`.
1414

15-
A prebuilt git hook lives at [`src/etc/pre-commit.sh`](https://github.com/rust-lang/rust/blob/master/src/etc/pre-commit.sh) which can be copied into your `.git/hooks` folder as `pre-commit` (without the `.sh` extension!).
15+
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!).
1616

1717
You can also install the hook as a step of running `./x.py setup`!
1818

0 commit comments

Comments
 (0)