@@ -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( )
@@ -1391,11 +1391,11 @@ impl Config {
1391
1391
// all the git commands below are actually executed, because some follow-up code
1392
1392
// in bootstrap might depend on the submodules being checked out. Furthermore, not all
1393
1393
// 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
1395
1395
// dry run mode.
1396
1396
let submodule_git = || {
1397
1397
let mut cmd = helpers:: git ( Some ( & absolute_path) ) ;
1398
- cmd. run_always ( ) ;
1398
+ cmd. run_in_dry_run ( ) ;
1399
1399
cmd
1400
1400
} ;
1401
1401
@@ -1405,7 +1405,7 @@ impl Config {
1405
1405
let checked_out_hash = checked_out_hash. trim_end ( ) ;
1406
1406
// Determine commit that the submodule *should* have.
1407
1407
let recorded = helpers:: git ( Some ( & self . src ) )
1408
- . run_always ( )
1408
+ . run_in_dry_run ( )
1409
1409
. args ( [ "ls-tree" , "HEAD" ] )
1410
1410
. arg ( relative_path)
1411
1411
. run_capture_stdout ( self )
@@ -1425,7 +1425,7 @@ impl Config {
1425
1425
1426
1426
helpers:: git ( Some ( & self . src ) )
1427
1427
. allow_failure ( )
1428
- . run_always ( )
1428
+ . run_in_dry_run ( )
1429
1429
. args ( [ "submodule" , "-q" , "sync" ] )
1430
1430
. arg ( relative_path)
1431
1431
. run ( self ) ;
@@ -1436,12 +1436,12 @@ impl Config {
1436
1436
// even though that has no relation to the upstream for the submodule.
1437
1437
let current_branch = helpers:: git ( Some ( & self . src ) )
1438
1438
. allow_failure ( )
1439
- . run_always ( )
1439
+ . run_in_dry_run ( )
1440
1440
. args ( [ "symbolic-ref" , "--short" , "HEAD" ] )
1441
1441
. run_capture ( self ) ;
1442
1442
1443
1443
let mut git = helpers:: git ( Some ( & self . src ) ) . allow_failure ( ) ;
1444
- git. run_always ( ) ;
1444
+ git. run_in_dry_run ( ) ;
1445
1445
if current_branch. is_success ( ) {
1446
1446
// If there is a tag named after the current branch, git will try to disambiguate by prepending `heads/` to the branch name.
1447
1447
// This syntax isn't accepted by `branch.{branch}`. Strip it.
0 commit comments