Skip to content

Commit 19bbd85

Browse files
committed
Fix branch name Cargo's downloaded from
This landed on beta in #39546 and this is bringing the patch back to master.
1 parent 324b175 commit 19bbd85

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/bootstrap/dist.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -517,9 +517,7 @@ pub fn cargo(build: &Build, stage: u32, target: &str) {
517517

518518
let branch = match &build.config.channel[..] {
519519
"stable" |
520-
"beta" => {
521-
build.release.split(".").take(2).collect::<Vec<_>>().join(".")
522-
}
520+
"beta" => format!("rust-{}", build.release_num),
523521
_ => "master".to_string(),
524522
};
525523

0 commit comments

Comments
 (0)