about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2017-02-04 16:53:17 -0800
committerAlex Crichton <alex@alexcrichton.com>2017-02-06 13:29:03 -0800
commit19bbd855ef73c28b381fd98553aedb0a7423efc4 (patch)
tree5a5d44e3cf40e053f76f4d7bd4b97c88ba757dc1 /src
parent324b175174c19b8be4592df11e65e0c4b6fee9d3 (diff)
downloadrust-19bbd855ef73c28b381fd98553aedb0a7423efc4.tar.gz
rust-19bbd855ef73c28b381fd98553aedb0a7423efc4.zip
Fix branch name Cargo's downloaded from
This landed on beta in #39546 and this is bringing the patch back to master.
Diffstat (limited to 'src')
-rw-r--r--src/bootstrap/dist.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/bootstrap/dist.rs b/src/bootstrap/dist.rs
index 9327cc0cf7f..9878d1c08ba 100644
--- a/src/bootstrap/dist.rs
+++ b/src/bootstrap/dist.rs
@@ -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(),
     };