@@ -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( )
@@ -1385,11 +1385,11 @@ impl Config {
13851385 // all the git commands below are actually executed, because some follow-up code
13861386 // in bootstrap might depend on the submodules being checked out. Furthermore, not all
13871387 // the command executions below work with an empty output (produced during dry run).
1388- // Therefore, all commands below are marked with `run_always ()`, so that they also run in
1388+ // Therefore, all commands below are marked with `run_in_dry_run ()`, so that they also run in
13891389 // dry run mode.
13901390 let submodule_git = || {
13911391 let mut cmd = helpers:: git ( Some ( & absolute_path) ) ;
1392- cmd. run_always ( ) ;
1392+ cmd. run_in_dry_run ( ) ;
13931393 cmd
13941394 } ;
13951395
@@ -1399,7 +1399,7 @@ impl Config {
13991399 let checked_out_hash = checked_out_hash. trim_end ( ) ;
14001400 // Determine commit that the submodule *should* have.
14011401 let recorded = helpers:: git ( Some ( & self . src ) )
1402- . run_always ( )
1402+ . run_in_dry_run ( )
14031403 . args ( [ "ls-tree" , "HEAD" ] )
14041404 . arg ( relative_path)
14051405 . run_capture_stdout ( self )
@@ -1419,7 +1419,7 @@ impl Config {
14191419
14201420 helpers:: git ( Some ( & self . src ) )
14211421 . allow_failure ( )
1422- . run_always ( )
1422+ . run_in_dry_run ( )
14231423 . args ( [ "submodule" , "-q" , "sync" ] )
14241424 . arg ( relative_path)
14251425 . run ( self ) ;
@@ -1430,12 +1430,12 @@ impl Config {
14301430 // even though that has no relation to the upstream for the submodule.
14311431 let current_branch = helpers:: git ( Some ( & self . src ) )
14321432 . allow_failure ( )
1433- . run_always ( )
1433+ . run_in_dry_run ( )
14341434 . args ( [ "symbolic-ref" , "--short" , "HEAD" ] )
14351435 . run_capture ( self ) ;
14361436
14371437 let mut git = helpers:: git ( Some ( & self . src ) ) . allow_failure ( ) ;
1438- git. run_always ( ) ;
1438+ git. run_in_dry_run ( ) ;
14391439 if current_branch. is_success ( ) {
14401440 // If there is a tag named after the current branch, git will try to disambiguate by prepending `heads/` to the branch name.
14411441 // This syntax isn't accepted by `branch.{branch}`. Strip it.
0 commit comments