File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
src/bootstrap/src/core/config Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -2418,13 +2418,16 @@ impl Config {
24182418 let compiler = format ! ( "{top_level}/compiler/" ) ;
24192419 let library = format ! ( "{top_level}/library/" ) ;
24202420
2421+ // If we are running in CI, the current commit will never have artifacts already built.
2422+ let tip_commit = if CiEnv :: is_ci ( ) { "HEAD^" } else { "HEAD" } ;
2423+
24212424 // Look for a version to compare to based on the current commit.
24222425 // Only commits merged by bors will have CI artifacts.
24232426 let merge_base = output (
24242427 self . git ( )
24252428 . arg ( "rev-list" )
24262429 . arg ( format ! ( "--author={}" , self . stage0_metadata. config. git_merge_commit_email) )
2427- . args ( [ "-n1" , "--first-parent" , "HEAD" ] ) ,
2430+ . args ( [ "-n1" , "--first-parent" , tip_commit ] ) ,
24282431 ) ;
24292432 let commit = merge_base. trim_end ( ) ;
24302433 if commit. is_empty ( ) {
You can’t perform that action at this time.
0 commit comments