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[..] {
|
||||
"stable" |
|
||||
"beta" => {
|
||||
build.release.split(".").take(2).collect::<Vec<_>>().join(".")
|
||||
}
|
||||
"beta" => format!("rust-{}", build.release_num),
|
||||
_ => "master".to_string(),
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user