diff options
| author | hkalbasi <hamidrezakalbasi@protonmail.com> | 2023-12-15 19:09:42 +0330 |
|---|---|---|
| committer | hkalbasi <hamidrezakalbasi@protonmail.com> | 2023-12-15 19:09:42 +0330 |
| commit | fa5a327786c4a4552602f2df4eb374d0b172dab2 (patch) | |
| tree | c65159e39a84a31f547ed2bf55e09d4c62cb7193 | |
| parent | 4f722165b66612e8103299972f644d94da93b78b (diff) | |
| download | rust-fa5a327786c4a4552602f2df4eb374d0b172dab2.tar.gz rust-fa5a327786c4a4552602f2df4eb374d0b172dab2.zip | |
Use depth 1 in git clone
| -rw-r--r-- | xtask/src/metrics.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xtask/src/metrics.rs b/xtask/src/metrics.rs index 3d28ecdb0eb..845928432c4 100644 --- a/xtask/src/metrics.rs +++ b/xtask/src/metrics.rs @@ -86,7 +86,7 @@ impl Metrics { fn measure_rustc_tests(&mut self, sh: &Shell) -> anyhow::Result<()> { eprintln!("\nMeasuring rustc tests"); - cmd!(sh, "git clone https://github.com/rust-lang/rust").run()?; + cmd!(sh, "git clone --depth=1 https://github.com/rust-lang/rust").run()?; let output = cmd!(sh, "./target/release/rust-analyzer rustc-tests ./rust").read()?; for (metric, value, unit) in parse_metrics(&output) { |
