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 {
226
226
pub artifacts_server : String ,
227
227
pub artifacts_with_llvm_assertions_server : String ,
228
228
pub git_merge_commit_email : String ,
229
+ pub nightly_branch : String ,
229
230
}
230
231
#[ derive( Default , Deserialize ) ]
231
232
#[ cfg_attr( test, derive( Clone ) ) ]
Original file line number Diff line number Diff line change @@ -1280,14 +1280,11 @@ impl Build {
1280
1280
// Figure out how many merge commits happened since we branched off master.
1281
1281
// That's our beta number!
1282
1282
// (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
+ ) ) ) ;
1291
1288
let n = count. trim ( ) . parse ( ) . unwrap ( ) ;
1292
1289
self . prerelease_version . set ( Some ( n) ) ;
1293
1290
n
Original file line number Diff line number Diff line change 3
3
"dist_server" : " https://static.rust-lang.org" ,
4
4
"artifacts_server" : " https://ci-artifacts.rust-lang.org/rustc-builds" ,
5
5
"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"
7
8
},
8
9
"__comments" : [
9
10
" The configuration above this comment is editable, and can be changed" ,
You can’t perform that action at this time.
0 commit comments