Skip to content

Commit f13edeb

Browse files
committed
Fix bootstrap panic when build from tarball
1 parent 561b5de commit f13edeb

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/bootstrap/src/core/builder.rs

+1-6
Original file line numberDiff line numberDiff line change
@@ -2221,13 +2221,8 @@ impl<'a> Builder<'a> {
22212221
out
22222222
}
22232223

2224-
/// Return paths of all submodules managed by git.
2225-
/// If the current checkout is not managed by git, returns an empty slice.
2224+
/// Return paths of all submodules.
22262225
pub fn get_all_submodules(&self) -> &[String] {
2227-
if !self.rust_info().is_managed_git_subrepository() {
2228-
return &[];
2229-
}
2230-
22312226
static SUBMODULES_PATHS: OnceLock<Vec<String>> = OnceLock::new();
22322227

22332228
let init_submodules_paths = |src: &PathBuf| {

0 commit comments

Comments
 (0)