File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -575,6 +575,10 @@ ignore them in the `.gitignore` file."
575
575
self . cmd ( ) . stderr ( self . stderr ( ) ) . args ( [ "submodule" , "init" ] ) . exec ( ) . map ( drop)
576
576
}
577
577
578
+ pub fn submodule_sync ( self ) -> Result < ( ) > {
579
+ self . cmd ( ) . stderr ( self . stderr ( ) ) . args ( [ "submodule" , "sync" ] ) . exec ( ) . map ( drop)
580
+ }
581
+
578
582
pub fn cmd ( self ) -> Command {
579
583
let mut cmd = Self :: cmd_no_root ( ) ;
580
584
cmd. current_dir ( self . root ) ;
Original file line number Diff line number Diff line change @@ -276,6 +276,9 @@ impl Installer<'_> {
276
276
std:: iter:: empty :: < PathBuf > ( ) ,
277
277
) ?;
278
278
279
+ // sync submodules config with changes in .gitmodules, see <https://github.com/foundry-rs/foundry/issues/9611>
280
+ self . git . root ( path) . submodule_sync ( ) ?;
281
+
279
282
if self . commit {
280
283
self . git . add ( Some ( path) ) ?;
281
284
}
You can’t perform that action at this time.
0 commit comments