From f13edeb4514368b4b3748e8f437fd6a166d95aff Mon Sep 17 00:00:00 2001 From: 12101111 Date: Fri, 3 May 2024 22:53:53 +0800 Subject: [PATCH] Fix bootstrap panic when build from tarball --- src/bootstrap/src/core/builder.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/bootstrap/src/core/builder.rs b/src/bootstrap/src/core/builder.rs index 0ad6c959309..6c4b26ec219 100644 --- a/src/bootstrap/src/core/builder.rs +++ b/src/bootstrap/src/core/builder.rs @@ -2221,13 +2221,8 @@ pub fn ensure(&'a self, step: S) -> S::Output { out } - /// Return paths of all submodules managed by git. - /// If the current checkout is not managed by git, returns an empty slice. + /// Return paths of all submodules. pub fn get_all_submodules(&self) -> &[String] { - if !self.rust_info().is_managed_git_subrepository() { - return &[]; - } - static SUBMODULES_PATHS: OnceLock> = OnceLock::new(); let init_submodules_paths = |src: &PathBuf| {