Skip to content

Commit c7fda78

Browse files
committed
fixup! Implement sync subcommand in clippy_dev
1 parent 306eccd commit c7fda78

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

@@ -168,7 +167,7 @@ pub(crate) const PUSH_PR_DESCRIPTION: &str = "Sync from Clippy commit:";
168167

169168
pub fn rustc_push(rustc_path: String, github_user: &str, branch: &str, force: bool) {
170169
let sh = Shell::new().expect("failed to create shell");
171-
sh.change_dir(clippy_project_root());
170+
// sh.change_dir(clippy_project_root());
172171

173172
assert_clean_repo(&sh);
174173

@@ -208,7 +207,7 @@ pub fn rustc_push(rustc_path: String, github_user: &str, branch: &str, force: bo
208207
let _josh = start_josh();
209208

210209
// Do the actual push.
211-
sh.change_dir(clippy_project_root());
210+
// sh.change_dir(clippy_project_root());
212211
println!("Pushing Clippy changes...");
213212
cmd!(
214213
sh,

0 commit comments

Comments
 (0)