Skip to content

Commit 5684b16

Browse files
authored
Unrolled build for rust-lang#130336
Rollup merge of rust-lang#130336 - onur-ozkan:simple-improvement, r=albertlarsan68 simplify `Build::update_existing_submodule` `Build::update_existing_submodule` is already doing the same thing..
2 parents 39b7669 + d9e560c commit 5684b16

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/bootstrap/src/lib.rs

+1-5
Original file line numberDiff line numberDiff line change
@@ -552,11 +552,7 @@ impl Build {
552552
// Look for `submodule.$name.path = $path`
553553
// Sample output: `submodule.src/rust-installer.path src/tools/rust-installer`
554554
let submodule = line.split_once(' ').unwrap().1;
555-
let path = Path::new(submodule);
556-
// Don't update the submodule unless it's already been cloned.
557-
if GitInfo::new(false, path).is_managed_git_subrepository() {
558-
self.config.update_submodule(submodule);
559-
}
555+
self.update_existing_submodule(submodule);
560556
}
561557
}
562558

0 commit comments

Comments
 (0)