mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-10 15:14:32 +00:00
Use depth 1 in git clone
This commit is contained in:
parent
4f722165b6
commit
fa5a327786
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue