Skip to content

Commit 2c6222b

Browse files
committed
Clarify comment on update_existing_submodules
This felt like an important point to me.
1 parent 6642f8d commit 2c6222b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/bootstrap/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,8 @@ impl Build {
583583
/// If any submodule has been initialized already, sync it unconditionally.
584584
/// This avoids contributors checking in a submodule change by accident.
585585
fn update_existing_submodules(&self) {
586-
// Avoid running git when there isn't a git checkout.
586+
// Avoid running git when there isn't a git checkout, or the user has
587+
// explicitly disabled submodules in `config.toml`.
587588
if !self.config.submodules(self.rust_info()) {
588589
return;
589590
}

0 commit comments

Comments
 (0)