Skip to content

Commit

Permalink
fixup! Josh preparations
Browse files Browse the repository at this point in the history
  • Loading branch information
flip1995 committed May 2, 2024
1 parent 235c86b commit 03b4501
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions clippy_dev/src/sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,12 @@ pub fn rustc_pull() {

assert_clean_repo(&sh);

if !cmd!(sh, "git log --oneline -1")
.read()
.expect("failed to run git log")
.contains("Bump nightly version ->")
let date = Utc::now().format("%Y-%m-%d").to_string();
if !std::fs::read_to_string("rust-toolchain")
.expect("failed to read rust-toolchain file")
.contains(&date)
{
eprintln!("last commit must be a nightly bump commit. Run `cargo dev sync update_toolchain` first.");
eprintln!("Toolchain must be up to date before running `cargo dev sync pull`");
exit(1);
}

Expand Down

0 comments on commit 03b4501

Please sign in to comment.