@@ -14,7 +14,7 @@ use std::sync::OnceLock;
14
14
use std:: { cmp, env, fs} ;
15
15
16
16
use build_helper:: exit;
17
- use build_helper:: git:: { output_result, GitConfig } ;
17
+ use build_helper:: git:: { get_closest_merge_commit , output_result, GitConfig } ;
18
18
use serde:: { Deserialize , Deserializer } ;
19
19
use serde_derive:: Deserialize ;
20
20
@@ -24,7 +24,7 @@ pub use crate::core::config::flags::Subcommand;
24
24
use crate :: core:: config:: flags:: { Color , Flags , Warnings } ;
25
25
use crate :: utils:: cache:: { Interned , INTERNER } ;
26
26
use crate :: utils:: channel:: { self , GitInfo } ;
27
- use crate :: utils:: helpers:: { self , exe, get_closest_merge_base_commit , output, t} ;
27
+ use crate :: utils:: helpers:: { self , exe, output, t} ;
28
28
29
29
macro_rules! check_ci_llvm {
30
30
( $name: expr) => {
@@ -2689,13 +2689,7 @@ impl Config {
2689
2689
2690
2690
// Look for a version to compare to based on the current commit.
2691
2691
// Only commits merged by bors will have CI artifacts.
2692
- let commit = get_closest_merge_base_commit (
2693
- Some ( & self . src ) ,
2694
- & self . git_config ( ) ,
2695
- & self . stage0_metadata . config . git_merge_commit_email ,
2696
- & [ ] ,
2697
- )
2698
- . unwrap ( ) ;
2692
+ let commit = get_closest_merge_commit ( Some ( & self . src ) , & self . git_config ( ) , & [ ] ) . unwrap ( ) ;
2699
2693
if commit. is_empty ( ) {
2700
2694
println ! ( "ERROR: could not find commit hash for downloading rustc" ) ;
2701
2695
println ! ( "HELP: maybe your repository history is too shallow?" ) ;
@@ -2787,13 +2781,7 @@ impl Config {
2787
2781
) -> Option < String > {
2788
2782
// Look for a version to compare to based on the current commit.
2789
2783
// Only commits merged by bors will have CI artifacts.
2790
- let commit = get_closest_merge_base_commit (
2791
- Some ( & self . src ) ,
2792
- & self . git_config ( ) ,
2793
- & self . stage0_metadata . config . git_merge_commit_email ,
2794
- & [ ] ,
2795
- )
2796
- . unwrap ( ) ;
2784
+ let commit = get_closest_merge_commit ( Some ( & self . src ) , & self . git_config ( ) , & [ ] ) . unwrap ( ) ;
2797
2785
if commit. is_empty ( ) {
2798
2786
println ! ( "error: could not find commit hash for downloading components from CI" ) ;
2799
2787
println ! ( "help: maybe your repository history is too shallow?" ) ;
0 commit comments