Skip to content

Commit

Permalink
Merge branch 'beta-prerelease' of https://github.com/cuviper/rust int…
Browse files Browse the repository at this point in the history
…o rollup
  • Loading branch information
alexcrichton committed Jan 26, 2018
2 parents afc977f + a76bb88 commit b741d7d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/bootstrap/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -771,7 +771,11 @@ impl Build {
fn release(&self, num: &str) -> String {
match &self.config.channel[..] {
"stable" => num.to_string(),
"beta" => format!("{}-beta.{}", num, self.beta_prerelease_version()),
"beta" => if self.rust_info.is_git() {
format!("{}-beta.{}", num, self.beta_prerelease_version())
} else {
format!("{}-beta", num)
},
"nightly" => format!("{}-nightly", num),
_ => format!("{}-dev", num),
}
Expand Down

0 comments on commit b741d7d

Please sign in to comment.