summary refs log tree commit diff
path: root/src/bootstrap/lib.rs
diff options
context:
space:
mode:
authorPietro Albini <pietro.albini@ferrous-systems.com>2022-07-11 10:15:13 +0200
committerPietro Albini <pietro.albini@ferrous-systems.com>2022-07-11 10:15:13 +0200
commit6bc97d0adcc7e9bd828de1ccf9c9ffc9b30165ee (patch)
tree763d9d417ab5f65884c5b24a4b01c8a27f27f47f /src/bootstrap/lib.rs
parentb6df2a70f0ef9013bbbbfca342c29d165ea467fa (diff)
downloadrust-6bc97d0adcc7e9bd828de1ccf9c9ffc9b30165ee.tar.gz
rust-6bc97d0adcc7e9bd828de1ccf9c9ffc9b30165ee.zip
configure nightly branch name in stage0.json
Diffstat (limited to 'src/bootstrap/lib.rs')
-rw-r--r--src/bootstrap/lib.rs13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/bootstrap/lib.rs b/src/bootstrap/lib.rs
index c1190c9192d..cd421c249d8 100644
--- a/src/bootstrap/lib.rs
+++ b/src/bootstrap/lib.rs
@@ -1280,14 +1280,11 @@ impl Build {
         // Figure out how many merge commits happened since we branched off master.
         // That's our beta number!
         // (Note that we use a `..` range, not the `...` symmetric difference.)
-        let count = output(
-            self.config
-                .git()
-                .arg("rev-list")
-                .arg("--count")
-                .arg("--merges")
-                .arg("refs/remotes/origin/master..HEAD"),
-        );
+        let count =
+            output(self.config.git().arg("rev-list").arg("--count").arg("--merges").arg(format!(
+                "refs/remotes/origin/{}..HEAD",
+                self.config.stage0_metadata.config.nightly_branch
+            )));
         let n = count.trim().parse().unwrap();
         self.prerelease_version.set(Some(n));
         n