@@ -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) => {
@@ -2686,13 +2686,7 @@ impl Config {
2686
2686
2687
2687
// Look for a version to compare to based on the current commit.
2688
2688
// Only commits merged by bors will have CI artifacts.
2689
- let commit = get_closest_merge_base_commit (
2690
- Some ( & self . src ) ,
2691
- & self . git_config ( ) ,
2692
- & self . stage0_metadata . config . git_merge_commit_email ,
2693
- & [ ] ,
2694
- )
2695
- . unwrap ( ) ;
2689
+ let commit = get_closest_merge_commit ( Some ( & self . src ) , & self . git_config ( ) , & [ ] ) . unwrap ( ) ;
2696
2690
if commit. is_empty ( ) {
2697
2691
println ! ( "ERROR: could not find commit hash for downloading rustc" ) ;
2698
2692
println ! ( "HELP: maybe your repository history is too shallow?" ) ;
@@ -2783,13 +2777,7 @@ impl Config {
2783
2777
) -> Option < String > {
2784
2778
// Look for a version to compare to based on the current commit.
2785
2779
// Only commits merged by bors will have CI artifacts.
2786
- let commit = get_closest_merge_base_commit (
2787
- Some ( & self . src ) ,
2788
- & self . git_config ( ) ,
2789
- & self . stage0_metadata . config . git_merge_commit_email ,
2790
- & [ ] ,
2791
- )
2792
- . unwrap ( ) ;
2780
+ let commit = get_closest_merge_commit ( Some ( & self . src ) , & self . git_config ( ) , & [ ] ) . unwrap ( ) ;
2793
2781
if commit. is_empty ( ) {
2794
2782
println ! ( "error: could not find commit hash for downloading components from CI" ) ;
2795
2783
println ! ( "help: maybe your repository history is too shallow?" ) ;
0 commit comments