mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-19 10:24:16 +00:00
Rollup merge of #130336 - onur-ozkan:simple-improvement, r=albertlarsan68
simplify `Build::update_existing_submodule` `Build::update_existing_submodule` is already doing the same thing..
This commit is contained in:
commit
9025fe9e64
@ -552,11 +552,7 @@ impl Build {
|
||||
// Look for `submodule.$name.path = $path`
|
||||
// Sample output: `submodule.src/rust-installer.path src/tools/rust-installer`
|
||||
let submodule = line.split_once(' ').unwrap().1;
|
||||
let path = Path::new(submodule);
|
||||
// Don't update the submodule unless it's already been cloned.
|
||||
if GitInfo::new(false, path).is_managed_git_subrepository() {
|
||||
self.config.update_submodule(submodule);
|
||||
}
|
||||
self.update_existing_submodule(submodule);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user