Skip to content

Commit 6c68ae6

Browse files
12101111cuviper
authored andcommitted
Fix bootstrap panic when build from tarball
(cherry picked from commit f13edeb)
1 parent 4b8149f commit 6c68ae6

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
@@ -2226,13 +2226,8 @@ impl<'a> Builder<'a> {
22262226
out
22272227
}
22282228

2229-
/// Return paths of all submodules managed by git.
2230-
/// If the current checkout is not managed by git, returns an empty slice.
2229+
/// Return paths of all submodules.
22312230
pub fn get_all_submodules(&self) -> &[String] {
2232-
if !self.rust_info().is_managed_git_subrepository() {
2233-
return &[];
2234-
}
2235-
22362231
static SUBMODULES_PATHS: OnceLock<Vec<String>> = OnceLock::new();
22372232

22382233
let init_submodules_paths = |src: &PathBuf| {

0 commit comments

Comments
 (0)