Skip to content

Commit

Permalink
Fix benchsuite issue with newer versions of git
Browse files Browse the repository at this point in the history
  • Loading branch information
ehuss committed Jan 15, 2025
1 parent 1b77ac6 commit 14f34e1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion benches/benchsuite/src/lib.rs
Original file line number Diff line number Diff line change
@@ -127,9 +127,12 @@ impl Fixtures {
fs::create_dir_all(&index).unwrap();
git("init --bare");
git("remote add origin https://github.com/rust-lang/crates.io-index-archive");
// git 2.48.0 changed the behavior of setting HEAD, so let's just
// force it to match crates.io-index-archive's default branch.
git("symbolic-ref HEAD refs/heads/main");
}
git(&format!("fetch origin {}", CRATES_IO_COMMIT));
git("branch -f master FETCH_HEAD");
git("branch -f main FETCH_HEAD");
}

/// This unpacks the compressed workspace skeletons into tmp/workspaces.

0 comments on commit 14f34e1

Please sign in to comment.