We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1b77ac6 commit 5ac521cCopy full SHA for 5ac521c
benches/benchsuite/src/lib.rs
@@ -125,11 +125,15 @@ impl Fixtures {
125
}
126
} else {
127
fs::create_dir_all(&index).unwrap();
128
- git("init --bare");
+ // git 2.48.0 changed the behavior of setting HEAD when doing a
129
+ // fetch, so let's just force it to match
130
+ // crates.io-index-archive's default branch. This also accounts
131
+ // for users who may override init.defaultBranch.
132
+ git("init --bare --initial-branch=main");
133
git("remote add origin https://github.com/rust-lang/crates.io-index-archive");
134
135
git(&format!("fetch origin {}", CRATES_IO_COMMIT));
- git("branch -f master FETCH_HEAD");
136
+ git("branch -f main FETCH_HEAD");
137
138
139
/// This unpacks the compressed workspace skeletons into tmp/workspaces.
0 commit comments