diff --git a/build/ninja_gen/src/git.rs b/build/ninja_gen/src/git.rs index 5499f8946..a1ec6c73f 100644 --- a/build/ninja_gen/src/git.rs +++ b/build/ninja_gen/src/git.rs @@ -18,7 +18,7 @@ impl BuildAction for SyncSubmodule { if self.offline_build { "echo OFFLINE_BUILD is set, skipping git repository update for $path" } else { - "git -c protocol.file.allow=always submodule update --init $path" + "git -c protocol.file.allow=always submodule update --checkout --init $path" } }