]> git.lizzy.rs Git - rust.git/commitdiff
adjust comments about pre-push.sh hook
authorKaDiWa <kalle.wachsmuth@gmail.com>
Wed, 4 Jan 2023 17:15:43 +0000 (18:15 +0100)
committerKaDiWa <kalle.wachsmuth@gmail.com>
Wed, 4 Jan 2023 17:15:43 +0000 (18:15 +0100)
src/bootstrap/setup.rs
src/etc/pre-push.sh

index cd360cbef9654b3108d2c1100f6613c5039f6278..ca4feac6fac70f21e9bbc0accdcc4aee9e910074 100644 (file)
@@ -351,7 +351,7 @@ fn parse_with_abbrev(input: &str) -> Result<Profile, String> {
     Ok(template)
 }
 
-// install a git hook to automatically run tidy --bless, if they want
+// install a git hook to automatically run tidy, if they want
 fn install_git_hook_maybe(config: &Config) -> io::Result<()> {
     let git = t!(config.git().args(&["rev-parse", "--git-common-dir"]).output().map(|output| {
         assert!(output.status.success(), "failed to run `git`");
@@ -367,7 +367,7 @@ fn install_git_hook_maybe(config: &Config) -> io::Result<()> {
     println!();
     println!(
         "Rust's CI will automatically fail if it doesn't pass `tidy`, the internal tool for ensuring code quality.
-If you'd like, x.py can install a git hook for you that will automatically run `tidy --bless` before
+If you'd like, x.py can install a git hook for you that will automatically run `test tidy` before
 pushing your code to ensure your code is up to par. If you decide later that this behavior is
 undesirable, simply delete the `pre-push` file from .git/hooks."
     );
index 2a3086338b4bfe0591961272c2ac9582213ae574..7a846d44ad6a8e9484b51aaf41705683feef5742 100755 (executable)
@@ -1,6 +1,6 @@
 #!/usr/bin/env bash
 #
-# Call `tidy --bless` before git push
+# Call `tidy` before git push
 # Copy this script to .git/hooks to activate,
 # and remove it from .git/hooks to deactivate.
 #