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:
Alex Crichton 2017-02-04 16:53:17 -08:00
parent 324b175174
commit 19bbd855ef

View file

@ -517,9 +517,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(),
};