mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 15:01:51 +00:00
adjust comments about pre-push.sh hook
This commit is contained in:
parent
df756439df
commit
8f80a23c25
@ -351,7 +351,7 @@ pub fn interactive_path() -> io::Result<Profile> {
|
||||
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."
|
||||
);
|
||||
|
@ -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.
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user