From d9e560cd542dc8bb3b70a4270d85b7163a14f743 Mon Sep 17 00:00:00 2001 From: onur-ozkan Date: Sat, 14 Sep 2024 07:56:13 +0300 Subject: [PATCH] simplify `Build::update_existing_submodule` `Build::update_existing_submodule` is already doing the same thing.. Signed-off-by: onur-ozkan --- src/bootstrap/src/lib.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/bootstrap/src/lib.rs b/src/bootstrap/src/lib.rs index 780024e307edc..325f88019ccd8 100644 --- a/src/bootstrap/src/lib.rs +++ b/src/bootstrap/src/lib.rs @@ -545,11 +545,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); } }