Skip to content

Commit b5d1765

Browse files
authored
Rollup merge of rust-lang#39598 - alexcrichton:cargo-branch, r=brson
Fix branch name Cargo's downloaded from This landed on beta in rust-lang#39546 and this is bringing the patch back to master.
2 parents cc0e540 + 19bbd85 commit b5d1765

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
@@ -515,9 +515,7 @@ pub fn cargo(build: &Build, stage: u32, target: &str) {
515515

516516
let branch = match &build.config.channel[..] {
517517
"stable" |
518-
"beta" => {
519-
build.release.split(".").take(2).collect::<Vec<_>>().join(".")
520-
}
518+
"beta" => format!("rust-{}", build.release_num),
521519
_ => "master".to_string(),
522520
};
523521

0 commit comments

Comments
 (0)