This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +8
-9
lines changed Expand file tree Collapse file tree 3 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -226,6 +226,7 @@ pub struct Stage0Config {
226226 pub artifacts_server : String ,
227227 pub artifacts_with_llvm_assertions_server : String ,
228228 pub git_merge_commit_email : String ,
229+ pub nightly_branch : String ,
229230}
230231#[ derive( Default , Deserialize ) ]
231232#[ cfg_attr( test, derive( Clone ) ) ]
Original file line number Diff line number Diff line change @@ -1280,14 +1280,11 @@ impl Build {
12801280 // Figure out how many merge commits happened since we branched off master.
12811281 // That's our beta number!
12821282 // (Note that we use a `..` range, not the `...` symmetric difference.)
1283- let count = output (
1284- self . config
1285- . git ( )
1286- . arg ( "rev-list" )
1287- . arg ( "--count" )
1288- . arg ( "--merges" )
1289- . arg ( "refs/remotes/origin/master..HEAD" ) ,
1290- ) ;
1283+ let count =
1284+ output ( self . config . git ( ) . arg ( "rev-list" ) . arg ( "--count" ) . arg ( "--merges" ) . arg ( format ! (
1285+ "refs/remotes/origin/{}..HEAD" ,
1286+ self . config. stage0_metadata. config. nightly_branch
1287+ ) ) ) ;
12911288 let n = count. trim ( ) . parse ( ) . unwrap ( ) ;
12921289 self . prerelease_version . set ( Some ( n) ) ;
12931290 n
Original file line number Diff line number Diff line change 33 "dist_server" : " https://static.rust-lang.org" ,
44 "artifacts_server" : " https://ci-artifacts.rust-lang.org/rustc-builds" ,
55 "artifacts_with_llvm_assertions_server" : " https://ci-artifacts.rust-lang.org/rustc-builds-alt" ,
6- "git_merge_commit_email" : " bors@rust-lang.org"
6+ "git_merge_commit_email" : " bors@rust-lang.org" ,
7+ "nightly_branch" : " master"
78 },
89 "__comments" : [
910 " The configuration above this comment is editable, and can be changed" ,
You can’t perform that action at this time.
0 commit comments