Skip to content

Commit

Permalink
Use depth 1 in git clone
Browse files Browse the repository at this point in the history
  • Loading branch information
HKalbasi committed Dec 15, 2023
1 parent 4f72216 commit fa5a327
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xtask/src/metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit fa5a327

Please sign in to comment.