File tree 1 file changed +4
-1
lines changed
src/bootstrap/src/core/config
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -2418,13 +2418,16 @@ impl Config {
2418
2418
let compiler = format ! ( "{top_level}/compiler/" ) ;
2419
2419
let library = format ! ( "{top_level}/library/" ) ;
2420
2420
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
+
2421
2424
// Look for a version to compare to based on the current commit.
2422
2425
// Only commits merged by bors will have CI artifacts.
2423
2426
let merge_base = output (
2424
2427
self . git ( )
2425
2428
. arg ( "rev-list" )
2426
2429
. arg ( format ! ( "--author={}" , self . stage0_metadata. config. git_merge_commit_email) )
2427
- . args ( [ "-n1" , "--first-parent" , "HEAD" ] ) ,
2430
+ . args ( [ "-n1" , "--first-parent" , tip_commit ] ) ,
2428
2431
) ;
2429
2432
let commit = merge_base. trim_end ( ) ;
2430
2433
if commit. is_empty ( ) {
You can’t perform that action at this time.
0 commit comments