@@ -809,7 +809,7 @@ impl Config {
809
809
config. initial_sysroot = t ! ( PathBuf :: from_str(
810
810
command( & config. initial_rustc)
811
811
. args( [ "--print" , "sysroot" ] )
812
- . run_always ( )
812
+ . run_in_dry_run ( )
813
813
. run_capture_stdout( & config)
814
814
. stdout( )
815
815
. trim( )
@@ -1385,11 +1385,11 @@ impl Config {
1385
1385
// all the git commands below are actually executed, because some follow-up code
1386
1386
// in bootstrap might depend on the submodules being checked out. Furthermore, not all
1387
1387
// 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
1389
1389
// dry run mode.
1390
1390
let submodule_git = || {
1391
1391
let mut cmd = helpers:: git ( Some ( & absolute_path) ) ;
1392
- cmd. run_always ( ) ;
1392
+ cmd. run_in_dry_run ( ) ;
1393
1393
cmd
1394
1394
} ;
1395
1395
@@ -1399,7 +1399,7 @@ impl Config {
1399
1399
let checked_out_hash = checked_out_hash. trim_end ( ) ;
1400
1400
// Determine commit that the submodule *should* have.
1401
1401
let recorded = helpers:: git ( Some ( & self . src ) )
1402
- . run_always ( )
1402
+ . run_in_dry_run ( )
1403
1403
. args ( [ "ls-tree" , "HEAD" ] )
1404
1404
. arg ( relative_path)
1405
1405
. run_capture_stdout ( self )
@@ -1419,7 +1419,7 @@ impl Config {
1419
1419
1420
1420
helpers:: git ( Some ( & self . src ) )
1421
1421
. allow_failure ( )
1422
- . run_always ( )
1422
+ . run_in_dry_run ( )
1423
1423
. args ( [ "submodule" , "-q" , "sync" ] )
1424
1424
. arg ( relative_path)
1425
1425
. run ( self ) ;
@@ -1430,12 +1430,12 @@ impl Config {
1430
1430
// even though that has no relation to the upstream for the submodule.
1431
1431
let current_branch = helpers:: git ( Some ( & self . src ) )
1432
1432
. allow_failure ( )
1433
- . run_always ( )
1433
+ . run_in_dry_run ( )
1434
1434
. args ( [ "symbolic-ref" , "--short" , "HEAD" ] )
1435
1435
. run_capture ( self ) ;
1436
1436
1437
1437
let mut git = helpers:: git ( Some ( & self . src ) ) . allow_failure ( ) ;
1438
- git. run_always ( ) ;
1438
+ git. run_in_dry_run ( ) ;
1439
1439
if current_branch. is_success ( ) {
1440
1440
// If there is a tag named after the current branch, git will try to disambiguate by prepending `heads/` to the branch name.
1441
1441
// This syntax isn't accepted by `branch.{branch}`. Strip it.
0 commit comments