Skip to content

Commit fe951dc

Browse files
committed
fixup! Implement sync subcommand in clippy_dev
1 parent ef06c9a commit fe951dc

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

clippy_dev/src/sync.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
use crate::utils::{FileUpdater, update_text_region_fn};
22
use chrono::offset::Utc;
33
use std::fmt::Write;
4-
use std::path::Path;
54
use std::process;
65
use std::process::exit;
76

@@ -91,7 +90,7 @@ pub fn rustc_pull() {
9190
const MERGE_COMMIT_MESSAGE: &str = "Merge from rustc";
9291

9392
let sh = Shell::new().expect("failed to create shell");
94-
sh.change_dir(clippy_project_root());
93+
// sh.change_dir(clippy_project_root());
9594

9695
assert_clean_repo(&sh);
9796

@@ -161,7 +160,7 @@ pub(crate) const PUSH_PR_DESCRIPTION: &str = "Sync from Clippy commit:";
161160

162161
pub fn rustc_push(rustc_path: String, github_user: &str, branch: &str, force: bool) {
163162
let sh = Shell::new().expect("failed to create shell");
164-
sh.change_dir(clippy_project_root());
163+
// sh.change_dir(clippy_project_root());
165164

166165
assert_clean_repo(&sh);
167166

@@ -201,7 +200,7 @@ pub fn rustc_push(rustc_path: String, github_user: &str, branch: &str, force: bo
201200
let _josh = start_josh();
202201

203202
// Do the actual push.
204-
sh.change_dir(clippy_project_root());
203+
// sh.change_dir(clippy_project_root());
205204
println!("Pushing Clippy changes...");
206205
cmd!(
207206
sh,

0 commit comments

Comments
 (0)