Rollup merge of #39598 - alexcrichton:cargo-branch, r=brson
Fix branch name Cargo's downloaded from This landed on beta in #39546 and this is bringing the patch back to master.
This commit is contained in:
commit
a7017b582c
@ -515,9 +515,7 @@ pub fn cargo(build: &Build, stage: u32, target: &str) {
|
|||||||
|
|
||||||
let branch = match &build.config.channel[..] {
|
let branch = match &build.config.channel[..] {
|
||||||
"stable" |
|
"stable" |
|
||||||
"beta" => {
|
"beta" => format!("rust-{}", build.release_num),
|
||||||
build.release.split(".").take(2).collect::<Vec<_>>().join(".")
|
|
||||||
}
|
|
||||||
_ => "master".to_string(),
|
_ => "master".to_string(),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user