Skip to content

Commit fa5a327

Browse files
committed
Use depth 1 in git clone
1 parent 4f72216 commit fa5a327

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xtask/src/metrics.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ impl Metrics {
8686
fn measure_rustc_tests(&mut self, sh: &Shell) -> anyhow::Result<()> {
8787
eprintln!("\nMeasuring rustc tests");
8888

89-
cmd!(sh, "git clone https://github.com/rust-lang/rust").run()?;
89+
cmd!(sh, "git clone --depth=1 https://github.com/rust-lang/rust").run()?;
9090

9191
let output = cmd!(sh, "./target/release/rust-analyzer rustc-tests ./rust").read()?;
9292
for (metric, value, unit) in parse_metrics(&output) {

0 commit comments

Comments
 (0)