Skip to content

Commit b741d7d

Browse files
committed
Merge branch 'beta-prerelease' of https://github.com/cuviper/rust into rollup
2 parents afc977f + a76bb88 commit b741d7d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/bootstrap/lib.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -771,7 +771,11 @@ impl Build {
771771
fn release(&self, num: &str) -> String {
772772
match &self.config.channel[..] {
773773
"stable" => num.to_string(),
774-
"beta" => format!("{}-beta.{}", num, self.beta_prerelease_version()),
774+
"beta" => if self.rust_info.is_git() {
775+
format!("{}-beta.{}", num, self.beta_prerelease_version())
776+
} else {
777+
format!("{}-beta", num)
778+
},
775779
"nightly" => format!("{}-nightly", num),
776780
_ => format!("{}-dev", num),
777781
}

0 commit comments

Comments
 (0)