Skip to content

Commit 8f80a23

Browse files
committed
adjust comments about pre-push.sh hook
1 parent df75643 commit 8f80a23

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/bootstrap/setup.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ pub fn interactive_path() -> io::Result<Profile> {
351351
Ok(template)
352352
}
353353

354-
// install a git hook to automatically run tidy --bless, if they want
354+
// install a git hook to automatically run tidy, if they want
355355
fn install_git_hook_maybe(config: &Config) -> io::Result<()> {
356356
let git = t!(config.git().args(&["rev-parse", "--git-common-dir"]).output().map(|output| {
357357
assert!(output.status.success(), "failed to run `git`");
@@ -367,7 +367,7 @@ fn install_git_hook_maybe(config: &Config) -> io::Result<()> {
367367
println!();
368368
println!(
369369
"Rust's CI will automatically fail if it doesn't pass `tidy`, the internal tool for ensuring code quality.
370-
If you'd like, x.py can install a git hook for you that will automatically run `tidy --bless` before
370+
If you'd like, x.py can install a git hook for you that will automatically run `test tidy` before
371371
pushing your code to ensure your code is up to par. If you decide later that this behavior is
372372
undesirable, simply delete the `pre-push` file from .git/hooks."
373373
);

src/etc/pre-push.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22
#
3-
# Call `tidy --bless` before git push
3+
# Call `tidy` before git push
44
# Copy this script to .git/hooks to activate,
55
# and remove it from .git/hooks to deactivate.
66
#

0 commit comments

Comments
 (0)