@@ -809,7 +809,7 @@ impl Config {
809809 config. initial_sysroot = t ! ( PathBuf :: from_str(
810810 command( & config. initial_rustc)
811811 . args( [ "--print" , "sysroot" ] )
812- . run_always ( )
812+ . run_in_dry_run ( )
813813 . run_capture_stdout( & config)
814814 . stdout( )
815815 . trim( )
@@ -1391,11 +1391,11 @@ impl Config {
13911391 // all the git commands below are actually executed, because some follow-up code
13921392 // in bootstrap might depend on the submodules being checked out. Furthermore, not all
13931393 // the command executions below work with an empty output (produced during dry run).
1394- // Therefore, all commands below are marked with `run_always ()`, so that they also run in
1394+ // Therefore, all commands below are marked with `run_in_dry_run ()`, so that they also run in
13951395 // dry run mode.
13961396 let submodule_git = || {
13971397 let mut cmd = helpers:: git ( Some ( & absolute_path) ) ;
1398- cmd. run_always ( ) ;
1398+ cmd. run_in_dry_run ( ) ;
13991399 cmd
14001400 } ;
14011401
@@ -1405,7 +1405,7 @@ impl Config {
14051405 let checked_out_hash = checked_out_hash. trim_end ( ) ;
14061406 // Determine commit that the submodule *should* have.
14071407 let recorded = helpers:: git ( Some ( & self . src ) )
1408- . run_always ( )
1408+ . run_in_dry_run ( )
14091409 . args ( [ "ls-tree" , "HEAD" ] )
14101410 . arg ( relative_path)
14111411 . run_capture_stdout ( self )
@@ -1425,7 +1425,7 @@ impl Config {
14251425
14261426 helpers:: git ( Some ( & self . src ) )
14271427 . allow_failure ( )
1428- . run_always ( )
1428+ . run_in_dry_run ( )
14291429 . args ( [ "submodule" , "-q" , "sync" ] )
14301430 . arg ( relative_path)
14311431 . run ( self ) ;
@@ -1436,12 +1436,12 @@ impl Config {
14361436 // even though that has no relation to the upstream for the submodule.
14371437 let current_branch = helpers:: git ( Some ( & self . src ) )
14381438 . allow_failure ( )
1439- . run_always ( )
1439+ . run_in_dry_run ( )
14401440 . args ( [ "symbolic-ref" , "--short" , "HEAD" ] )
14411441 . run_capture ( self ) ;
14421442
14431443 let mut git = helpers:: git ( Some ( & self . src ) ) . allow_failure ( ) ;
1444- git. run_always ( ) ;
1444+ git. run_in_dry_run ( ) ;
14451445 if current_branch. is_success ( ) {
14461446 // If there is a tag named after the current branch, git will try to disambiguate by prepending `heads/` to the branch name.
14471447 // This syntax isn't accepted by `branch.{branch}`. Strip it.
0 commit comments