about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbjorn3 <17426603+bjorn3@users.noreply.github.com>2022-12-14 15:23:24 +0000
committerbjorn3 <17426603+bjorn3@users.noreply.github.com>2022-12-14 15:23:24 +0000
commit2bb3996244cf1b89878da9e39841e9f6bf061602 (patch)
tree5ecf0b879e0e8f95ec7d00951b767c59d9ac7205
parenta45924cc21d3138ee449d1cf756ca914ce10f52d (diff)
downloadrust-2bb3996244cf1b89878da9e39841e9f6bf061602.tar.gz
rust-2bb3996244cf1b89878da9e39841e9f6bf061602.zip
Remove unnecessary git init
-rw-r--r--build_system/prepare.rs4
1 files changed, 0 insertions, 4 deletions
diff --git a/build_system/prepare.rs b/build_system/prepare.rs
index 8826f1bd259..8ac67e8f942 100644
--- a/build_system/prepare.rs
+++ b/build_system/prepare.rs
@@ -67,10 +67,6 @@ fn prepare_sysroot(dirs: &Dirs) {
     fs::write(SYSROOT_RUSTC_VERSION.to_path(dirs), &rustc_version).unwrap();
 
     eprintln!("[GIT] init");
-    let mut git_init_cmd = Command::new("git");
-    git_init_cmd.arg("init").arg("-q").current_dir(sysroot_src.to_path(dirs));
-    spawn_and_wait(git_init_cmd);
-
     init_git_repo(&sysroot_src.to_path(dirs));
 
     apply_patches(dirs, "sysroot", &sysroot_src.to_path(dirs));